Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 879e1fe

Browse files
committed
feature: add docs for extra fields
1 parent 9bb0623 commit 879e1fe

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

security/ldap.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ use the ``ldap`` user provider.
149149
search_password: password
150150
default_roles: ROLE_USER
151151
uid_key: uid
152+
extra_fields: ['email']
152153
153154
.. code-block:: xml
154155
@@ -189,6 +190,7 @@ use the ``ldap`` user provider.
189190
'search_password' => 'password',
190191
'default_roles' => 'ROLE_USER',
191192
'uid_key' => 'uid',
193+
'extra_fields' => ['email'],
192194
],
193195
],
194196
],
@@ -268,6 +270,15 @@ implementation. Commonly used values are:
268270
If you pass ``null`` as the value of this option, the default UID key is used
269271
``sAMAccountName``.
270272

273+
extra_fields
274+
............
275+
276+
**type**: ``array`` **default**: ``null``
277+
278+
This is the custom fields to pull from the LDAP server. If the fields does not
279+
exists it will throw an \InvalidArgumentException.
280+
281+
271282
filter
272283
......
273284

0 commit comments

Comments
 (0)