group membership checked against login instead of DN #911
|
@ -157,7 +157,7 @@ function ldapauth_authenticate($username, $password)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$r = @ldap_compare($connect, $ldap_group, 'member', $dn);
|
$r = @ldap_compare($connect, $ldap_group, 'member', $res);
|
||||||
if ($r === -1) {
|
if ($r === -1) {
|
||||||
$err = @ldap_error($connect);
|
$err = @ldap_error($connect);
|
||||||
$eno = @ldap_errno($connect);
|
$eno = @ldap_errno($connect);
|
||||||
|
|
Loading…
Reference in a new issue