File tree 1 file changed +9
-3
lines changed 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -257,19 +257,22 @@ and will not be considered as authenticated fully.
257
257
uid_key
258
258
.......
259
259
260
- **type **: ``string `` **default **: ``sAMAccountName ``
260
+ **type **: ``string `` **default **: ``null ``
261
261
262
262
This is the entry's key to use as its UID. Depends on your LDAP server
263
263
implementation. Commonly used values are:
264
264
265
- * ``sAMAccountName ``
265
+ * ``sAMAccountName `` (default)
266
266
* ``userPrincipalName ``
267
267
* ``uid ``
268
268
269
+ If you configure the value ``null `` for the UID key, the default UID key
270
+ ``sAMAccountName `` is used.
271
+
269
272
filter
270
273
......
271
274
272
- **type **: ``string `` **default **: ``({uid_key}={username}) ``
275
+ **type **: ``string `` **default **: ``null ``
273
276
274
277
This key lets you configure which LDAP query will be used. The ``{uid_key} ``
275
278
string will be replaced by the value of the ``uid_key `` configuration value
@@ -279,6 +282,9 @@ replaced by the username you are trying to load.
279
282
For example, with a ``uid_key `` of ``uid ``, and if you are trying to
280
283
load the user ``fabpot ``, the final string will be: ``(uid=fabpot) ``.
281
284
285
+ If you configure this key with the value ``null ``, the default filter
286
+ ``({uid_key}={username}) `` is used.
287
+
282
288
Of course, the username will be escaped, in order to prevent `LDAP injection `_.
283
289
284
290
The syntax for the ``filter `` key is defined by `RFC4515 `_.
You can’t perform that action at this time.
0 commit comments