Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- security:
- providers:
- user_provider:
- ldap:
- service: Symfony\Component\Ldap\Ldap
- base_dn: "%env(LDAP_BASE_DN)%"
- # Identifiants pour la connexion au LDAP
- search_dn: "%env(LDAP_SEARCH_DN)%"
- search_password: "%env(LDAP_SEARCH_PASSWORD)%"
- # Rôle par défaut pour nos utilisateurs LDAP
- default_roles: ROLE_USER
- # Clé contenant notre identifiant unique
- uid_key: uid
- # Clé contenant le mot de passe
- password_attribute: 'userPassword'
- encoders:
- Symfony\Component\Security\Core\User\User:
- id: App\Security\LdapEncoder
Add Comment
Please, Sign In to add comment