Skip to content

Commit

Permalink
Merge pull request #272 from JediKev/issue/ldap-bool-error
Browse files Browse the repository at this point in the history
Reviewed-By: JediKev <[email protected]>
  • Loading branch information
JediKev committed Jun 12, 2023
2 parents 215dced + ff814b5 commit 508b15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth-ldap/authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function($match) use ($username, $domain, $config) {
$schema['lookup']),
array('sizelimit' => 1)
);
if (PEAR::isError($r) || !$r->count())
if (PEAR::isError($r) || !$r->count() || !$r->current())
return null;

// Attempt to bind as the DN of the user looked up with the password
Expand Down

0 comments on commit 508b15e

Please sign in to comment.