group membership checked against login instead of DN #911

Open
victort wants to merge 1 commit from victort/LDAP_Group_memebership_tweak into develop
Showing only changes of commit 908105684c - Show all commits

View file

@ -157,7 +157,7 @@ function ldapauth_authenticate($username, $password)
return true;
}
$r = @ldap_compare($connect, $ldap_group, 'member', $dn);
$r = @ldap_compare($connect, $ldap_group, 'member', $res);
if ($r === -1) {
$err = @ldap_error($connect);
$eno = @ldap_errno($connect);