Guest User

Untitled

a guest
Feb 8th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. security:
  2. providers:
  3. user_provider:
  4. ldap:
  5. service: Symfony\Component\Ldap\Ldap
  6. base_dn: "%env(LDAP_BASE_DN)%"
  7.  
  8. # Identifiants pour la connexion au LDAP
  9. search_dn: "%env(LDAP_SEARCH_DN)%"
  10. search_password: "%env(LDAP_SEARCH_PASSWORD)%"
  11.  
  12. # Rôle par défaut pour nos utilisateurs LDAP
  13. default_roles: ROLE_USER
  14. # Clé contenant notre identifiant unique
  15. uid_key: uid
  16. # Clé contenant le mot de passe
  17. password_attribute: 'userPassword'
  18. encoders:
  19. Symfony\Component\Security\Core\User\User:
  20. id: App\Security\LdapEncoder
Add Comment
Please, Sign In to add comment