From c111423ab2a7f82cc9e8f21d439f9e4f3944e095 Mon Sep 17 00:00:00 2001 From: Steve Renaker Date: Fri, 18 May 2018 09:54:11 -0700 Subject: [PATCH] DOCSP-2463-v3.6: Connecting to a MongoDB server using LDAP Authorization example should not show in the double quotes --- source/core/security-ldap-external.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/core/security-ldap-external.txt b/source/core/security-ldap-external.txt index a49a05c14e5..c1f69ffbe37 100644 --- a/source/core/security-ldap-external.txt +++ b/source/core/security-ldap-external.txt @@ -382,7 +382,13 @@ with LDAP authentication and authorization: .. code-block:: shell - mongo --username alice@dba.example.com --password "secret123" --authenticationDatabase "$external" --authenticationMechanism "PLAIN" --host "mongodb.example.com" --port 27017 + mongo --username alice@dba.example.com --password "secret123" --authenticationDatabase '$external' --authenticationMechanism "PLAIN" --host "mongodb.example.com" --port 27017 + +.. important:: + + The ``$external`` argument must be placed in single quotes, not + double quotes, to prevent the shell from interpreting ``$external`` + as a variable. .. _security-ldap-external-roles: