group membership checked against login instead of DN #911

Open
victort wants to merge 1 commit from victort/LDAP_Group_memebership_tweak into develop

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);