You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a symfony version 2.5, what can i use to have a ldap connection ?
Moreover, I try to associate FOSUserBundle to it.
So i configure my app with LdapUserProvider in your doc "Using a custom user manager with LDAP authentication".
I follow it, i also add general configuration with that in my config.yml
/******************************************************************************
Hello, i have a problem with my app.
For a symfony version 2.5, what can i use to have a ldap connection ?
Moreover, I try to associate FOSUserBundle to it.
So i configure my app with LdapUserProvider in your doc "Using a custom user manager with LDAP authentication".
I follow it, i also add general configuration with that in my config.yml
/******************************************************************************
Configuration LDAP
imag_ldap:
client:
host: host.org
port: 389
username: myReader # Optional
password: MDP # Optional
user:
base_dn: ou=one, dc=two, dc=three
name_attribute: uid
user_class: MDP\UserBundle\Entity\User
******************************************************************************/
i configure services.xml like that :
/******************************************************************************
%imag_ldap.model.user_class%
******************************************************************************/
my security.yml
/*******************************************************************************
security:
encoders:
MDP\UserBundle\Entity\User: plaintext
imag_ldap:
client:
host: MDP.siege
port: 389
username: myReader# Optional
password: MDP # Optional
user:
base_dn: ou=one, dc=two, dc=three
name_attribute: uid
role:
base_dn: ou=one, dc=two, dc=three
name_attribute: cn
user_attribute: member
user_id: username
****************************************************************************/
and add it in my config.yml with a link.
I do too my LdapUserProvider.php
One particulary, i must remove method ->doPass() because she doesn't exist ...
What i do wrong ?
do you have a solution please ?
The text was updated successfully, but these errors were encountered: