Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from nietonfir/http_basic_ldap
Browse files Browse the repository at this point in the history
Update HttpBasicLdapFactory
  • Loading branch information
lsmith77 committed Jan 27, 2017
1 parent 3228f59 commit ae24bb9
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -93,9 +93,7 @@ protected function checkAuthentication(UserInterface $user, UsernamePasswordToke

if ($this->queryString) {
$query = str_replace('{username}', $username, $this->queryString);

$query = $this->ldap->query($this->dnString, $query);
$result = $query->execute();
$result = $this->ldap->query($this->dnString, $query)->execute();
if (1 !== $result->count()) {
throw new BadCredentialsException('The presented username is invalid.');
}
Expand Down

0 comments on commit ae24bb9

Please sign in to comment.