awillemyns
Hello,
I am not able to use LDAP plugin for authentication.
Here is my conf:
$conf['plugin']['authldap']['server'] = 'ldap://localhost:389';
$conf['plugin']['authldap']['port'] = 389;
$conf['plugin']['authldap']['version'] = 3;
$conf['plugin']['authldap']['usertree'] = 'cn=devs-group,ou=devs,dc=unixmen,dc=local';
$conf['plugin']['authldap']['userfilter'] = '(&(cn=%{user})(objectClass=posixAccount))';
$conf['plugin']['authldap']['binddn'] = 'cn=admin,dc=unixmen,dc=local';
I have next debug information:
LDAP user search: Success [auth.php:197]
LDAP search at: cn=devs-group,ou=devs,dc=unixmen,dc=local (&(cn=)(objectClass=posixAccount)) [auth.php:198]
Sorry, username or password was wrong.
My feeling is that %{user} is replaced by empty value because if I hardcode my username it works:
$conf['plugin']['authldap']['userfilter'] = '(&(cn=awillemyns)(objectClass=posixAccount))';
Any idea ?