File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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:
268270If 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+
271285filter
272286......
273287
You can’t perform that action at this time.
0 commit comments