Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Closed
Description
Description
When a user logs in with a ldap dn, we need the ability to add roles by groups the user is a member of.
Example
security:providers:some_ldap:ldap:service:Symfony\Component\Ldap\Ldapbase_dn:cn=Users,dc=example,dc=comsearch_dn:"cn=MyService,ou=Services,dc=example,dc=com"search_password:'%env(resolve:LDAP_PW)%'default_roles:ROLE_USERroles:'CN=Administrators,CN=Builtin,DC=example,DC=com':ROLE_ADMINextra_fields:['mail']
Which would result in a user with the aCN=Administrators,CN=Builtin,DC=example,DC=com
membership to be assigned theROLE_ADMIN
role.