File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,18 @@ title: Authenticate the user in the ``mongo`` shell.
7575stepnum : 3
7676ref : ldap-sasl-authenticate
7777pre : |
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+
8090action :
8191 pre : |
8292 Specify the value ``"PLAIN"`` in the ``mechanism`` field, the user and
You can’t perform that action at this time.
0 commit comments