Skip to content

Commit ec35317

Browse files
committed
DOCS-8909: remove user in db.auth() example
1 parent a0befac commit ec35317

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

source/tutorial/configure-x509-client-authentication.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,16 +307,12 @@ Authenticate with a x.509 Certificate
307307

308308
#. To perform the authentication, use the :method:`db.auth()` method in
309309
the ``$external`` database. For the ``mechanism``
310-
field, specify ``"MONGODB-X509"``, and for the
311-
``user`` field, specify the :ref:`user that
312-
corresponds to the client certificate
313-
<addX509SubjectUser>` .
310+
field, specify ``"MONGODB-X509"``.
314311

315312
.. code-block:: javascript
316313

317314
db.getSiblingDB("$external").auth(
318315
{
319-
mechanism: "MONGODB-X509",
320-
user: "CN=myName,OU=myOrgUnit,O=myOrg,L=myLocality,ST=myState,C=myCountry"
316+
mechanism: "MONGODB-X509"
321317
}
322318
)

0 commit comments

Comments
 (0)