File tree Expand file tree Collapse file tree 5 files changed +43
-3
lines changed Expand file tree Collapse file tree 5 files changed +43
-3
lines changed Original file line number Diff line number Diff line change @@ -3219,6 +3219,13 @@ Key Management Configuration Options
3219
3219
authentication failures to the LDAP server. :binary:`~bin.mongod` or
3220
3220
:binary:`~bin.mongos` rejects the connection request and does not
3221
3221
check the remaining documents in the array.
3222
+
3223
+ Starting in MongoDB 5.0, :setting:`~security.ldap.userToDNMapping`
3224
+ accepts an empty string ``""`` or empty array ``[ ]`` in place of a
3225
+ mapping documnent. If providing an empty string or empty array to
3226
+ :setting:`~security.ldap.userToDNMapping`, MongoDB will map the
3227
+ authenticated username as the LDAP DN. Previously, providing an
3228
+ empty mapping document would cause mapping to fail.
3222
3229
3223
3230
.. example::
3224
3231
Original file line number Diff line number Diff line change @@ -1245,7 +1245,14 @@ LDAP Authentication or Authorization Options
1245
1245
or authentication failures to the LDAP server. :binary:`~bin.mongod`
1246
1246
rejects the connection request and does not check the remaining
1247
1247
documents in the array.
1248
-
1248
+
1249
+ Starting in MongoDB 5.0, :option:`--ldapUserToDNMapping`
1250
+ accepts an empty string ``""`` or empty array ``[ ]`` in place of a
1251
+ mapping documnent. If providing an empty string or empty array to
1252
+ :option:`--ldapUserToDNMapping`, MongoDB will map the
1253
+ authenticated username as the LDAP DN. Previously, providing an
1254
+ empty mapping document would cause mapping to fail.
1255
+
1249
1256
.. example::
1250
1257
1251
1258
The following shows two transformation documents. The first
Original file line number Diff line number Diff line change @@ -534,7 +534,14 @@ Options
534
534
or authentication failures to the LDAP server. :program:`mongoldap`
535
535
rejects the connection request and does not check the remaining
536
536
documents in the array.
537
-
537
+
538
+ Starting in MongoDB 5.0, :option:`--ldapUserToDNMapping`
539
+ accepts an empty string ``""`` or empty array ``[ ]`` in place of a
540
+ mapping documnent. If providing an empty string or empty array to
541
+ :option:`--ldapUserToDNMapping`, MongoDB will map the
542
+ authenticated username as the LDAP DN. Previously, providing an
543
+ empty mapping document would cause mapping to fail.
544
+
538
545
.. example::
539
546
540
547
The following shows two transformation documents. The first
Original file line number Diff line number Diff line change @@ -2015,7 +2015,14 @@ LDAP Authentication and Authorization Options
2015
2015
or authentication failures to the LDAP server. :binary:`~bin.mongos`
2016
2016
rejects the connection request and does not check the remaining
2017
2017
documents in the array.
2018
-
2018
+
2019
+ Starting in MongoDB 5.0, :option:`--ldapUserToDNMapping`
2020
+ accepts an empty string ``""`` or empty array ``[ ]`` in place of a
2021
+ mapping documnent. If providing an empty string or empty array to
2022
+ :option:`--ldapUserToDNMapping`, MongoDB will map the
2023
+ authenticated username as the LDAP DN. Previously, providing an
2024
+ empty mapping document would cause mapping to fail.
2025
+
2019
2026
.. example::
2020
2027
2021
2028
The following shows two transformation documents. The first
Original file line number Diff line number Diff line change @@ -417,6 +417,18 @@ readability by separating the variables from the query text.
417
417
The :dbcommand:`update` command also has a ``c`` field to define a list
418
418
of variables.
419
419
420
+ Support for Username to LDAP DN Mapping by Default
421
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
422
+
423
+ Starting in MongoDB 5.0, the :setting:`~security.ldap.userToDNMapping`
424
+ configuration file option and the :option:`--ldapUserToDNMapping
425
+ <mongod --ldapUserToDNMapping>` command line option for
426
+ :binary:`~bin.mongod` / :binary:`~bin.mongos` and :program:`mongoldap`
427
+ now map the authenticated username as the LDAP DN by default if an
428
+ empty mapping document (i.e. an empty string or empty array) is
429
+ specified to the option. Previously, providing an empty mapping document
430
+ would cause mapping to fail.
431
+
420
432
Additional ``dbStats`` Free Space Statistics
421
433
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
422
434
You can’t perform that action at this time.
0 commit comments