Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit ae24bb9

Browse files
committed
Merge pull request #1 from nietonfir/http_basic_ldap
Update HttpBasicLdapFactory
1 parent 3228f59 commit ae24bb9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Core/Authentication/Provider/LdapBindAuthenticationProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ protected function checkAuthentication(UserInterface $user, UsernamePasswordToke
9393

9494
if ($this->queryString) {
9595
$query = str_replace('{username}', $username, $this->queryString);
96-
97-
$query = $this->ldap->query($this->dnString, $query);
98-
$result = $query->execute();
96+
$result = $this->ldap->query($this->dnString, $query)->execute();
9997
if (1 !== $result->count()) {
10098
throw new BadCredentialsException('The presented username is invalid.');
10199
}

0 commit comments

Comments
 (0)