Skip to content

Commit

Permalink
group membership checked against login instead of DN
Browse files Browse the repository at this point in the history
  • Loading branch information
mprov committed Nov 17, 2019
1 parent 43503ab commit 9081056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldapauth/ldapauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9081056

Please sign in to comment.