Skip to content

Commit 32ba185

Browse files
committed
Merge branch '4.4'
* 4.4: feature: add docs for extra fields
2 parents 25dc377 + dc5781b commit 32ba185

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

security/ldap.rst

Lines changed: 14 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,18 @@ 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+
.. versionadded:: 4.4
279+
280+
The ``extra_fields`` option was introduced in Symfony 4.4.
281+
282+
Defines the custom fields to pull from the LDAP server. If any field does not
283+
exist, an ``\InvalidArgumentException`` will be thrown.
284+
271285
filter
272286
......
273287

0 commit comments

Comments
 (0)