Skip to content

Commit 1d2c0c2

Browse files
nlarewkay-kim
authored andcommitted
DOCS-10018: CLI auth in OpenLDAP Tutorial
1 parent 8d1afe1 commit 1d2c0c2

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

source/includes/steps-configure-ldap-mongodb.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,18 @@ title: Authenticate the user in the ``mongo`` shell.
7575
stepnum: 3
7676
ref: ldap-sasl-authenticate
7777
pre: |
78-
To perform the authentication in the :program:`mongo` shell, use the
79-
:method:`db.auth()` method in the ``$external`` database.
78+
To authenticate when connecting with the ``mongo`` shell, run
79+
:program:`mongo` with the following options, substituting ``<host>``
80+
and ``<user>``, and enter your password when prompted:
81+
82+
.. class:: copyable-code
83+
.. code-block:: shell
84+
85+
mongo --host <host> --authenticationMechanism PLAIN --authenticationDatabase '$external' -u <user> -p
86+
87+
Alternatively, connect without supplying credentials and call the
88+
:method:`db.auth()` method on the ``$external`` database.
89+
8090
action:
8191
pre: |
8292
Specify the value ``"PLAIN"`` in the ``mechanism`` field, the user and

0 commit comments

Comments
 (0)