Skip to content
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pre: |
Given the configured :setting:`~security.ldap.authz.queryTemplate`,
users must authenticate with their full LDAP DN. If users instead
authenticate using their ``userPrincipalName``, then a transformation
must be applied to conver the provided username to a full LDAP DN.
must be applied to convert the provided username to a full LDAP DN.

The following :setting:`~security.ldap.userToDNMapping` configuration
uses the ``match`` regular expression filter to capture the provided
Expand Down Expand Up @@ -293,7 +293,7 @@ pre: |

.. code-block:: shell

mongo --username [email protected] --password secret123 --authenticationMechanisms='PLAIN' --authenticationDatabase '$external' --host <hostname> --port <port>
mongo --username [email protected] --password secret123 --authenticationMechanisms PLAIN --authenticationDatabase $external --host <hostname> --port <port>

:abbr:`Windows (Microsoft Windows)` MongoDB deployments must use
:program:`mongo.exe` instead of :program:`mongo`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ This procedure produces the following configuration file:
userToDNMapping:
'[
{
match: "(.+)"
match: "(.+)",
ldapQuery: "DC=example,DC=com??sub?(userPrincipalName={0})"
}
]'
Expand Down