Skip to content

DOCS-10018: CLI auth in OpenLDAP Tutorial #3155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions source/includes/steps-configure-ldap-mongodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,18 @@ title: Authenticate the user in the ``mongo`` shell.
stepnum: 3
ref: ldap-sasl-authenticate
pre: |
To perform the authentication in the :program:`mongo` shell, use the
:method:`db.auth()` method in the ``$external`` database.
To authenticate when connecting with the ``mongo`` shell, run
:program:`mongo` with the following options, substituting ``<host>``
and ``<user>``, and enter your password when prompted:

.. class:: copyable-code
.. code-block:: shell

mongo --host <host> --authenticationMechanism PLAIN --authenticationDatabase '$external' -u <user> -p

Alternatively, connect without supplying credentials and call the
:method:`db.auth()` method on the ``$external`` database.

action:
pre: |
Specify the value ``"PLAIN"`` in the ``mechanism`` field, the user and
Expand Down