group membership checked against login instead of DN

This commit is contained in:
mprov 2019-11-16 16:07:42 -08:00
parent 43503abc15
commit 908105684c

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