Check LDAP username in case insensitive way

Signed-off-by: Eric Lippmann <eric.lippmann@netways.de>

refs #7991
This commit is contained in:
Tom Ford 2014-11-28 14:50:03 +00:00 committed by Eric Lippmann
parent e0bec56d23
commit dc0f396fbf
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ class LdapUserBackend extends UserBackend
public function hasUser(User $user)
{
$username = $user->getUsername();
return $this->conn->fetchOne($this->selectUser($username)) === $username;
return strtolower($this->conn->fetchOne($this->selectUser($username))) === strtolower($username);
}
/**