Authentification Ldap et fosuserbundle
Hello,
J'essaie de configurer pour que la vérification du mot de passe se fasse sur la ldap mais
il y a un soucis lors de la comparaison des mots de passes
La première valeur est vide (voir capture)
Message d'erreur :
User Warning: Expected known_string to be a string, NULL given
http://i.stack.imgur.com/y9gyh.png
Mes configs :
security.yml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| providers:
fos_userbundle:
id: fos_user.user_provider.username
users_ldap:
ldap:
service: ldap
base_dn: "OU=USERS,DC=domain,DC=be"
search_dn: "CN=ps,OU=apps,DC=domain,DC=be"
search_password: password
default_roles: ROLE_USER
uid_key: sAMAccountName
chain_provider:
chain :
providers: [users_ldap, fos_userbundle]
encoders:
Symfony\Component\Security\Core\User\User: plaintext
AcSecurityBundle\Entity\User: sha512
firewalls:
secured_area:
pattern: ^/
anonymous: true
provider: chain_provider
form_login:
csrf_token_generator: security.csrf.token_manager
use_referer: true
form_login_ldap:
service: ldap
use_referer: true
logout: true` |
service.yml
Code:
1 2 3 4 5 6 7 8 9 10 11
|
services:
ldap:
class: 'Symfony\Component\Ldap\LdapClient'
arguments:
- ldap.domain.be # host
- 636 # port
- 3 # version
- true # SSL
- false # TLS
# |
Où est l'erreur ?
Merci