Skip to content

Commit fca054e

Browse files
committed
minor #11814 feature: add docs for extra fields (Simperfit)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead (closes #11814). Discussion ---------- feature: add docs for extra fields <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Fix #11810 Commits ------- 76dadf8 feature: add docs for extra fields
2 parents 5e8b126 + 76dadf8 commit fca054e

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)