Skip to content

Commit 7280879

Browse files
steverenkay-kim
authored andcommitted
DOCSP-2463: Connecting to a MongoDB server using LDAP Authorization example should not show in the double quotes
1 parent 4f71df5 commit 7280879

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source/core/security-ldap-external.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,13 @@ with LDAP authentication and authorization:
382382

383383
.. code-block:: shell
384384

385-
mongo --username [email protected] --password "secret123" --authenticationDatabase "$external" --authenticationMechanism "PLAIN" --host "mongodb.example.com" --port 27017
385+
mongo --username [email protected] --password "secret123" --authenticationDatabase '$external' --authenticationMechanism "PLAIN" --host "mongodb.example.com" --port 27017
386+
387+
.. important::
388+
389+
The ``$external`` argument must be placed in single quotes, not
390+
double quotes, to prevent the shell from interpreting ``$external``
391+
as a variable.
386392

387393
.. _security-ldap-external-roles:
388394

0 commit comments

Comments
 (0)