Check LDAP username in case insensitive way
Signed-off-by: Eric Lippmann <eric.lippmann@netways.de> refs #7991
This commit is contained in:
parent
e0bec56d23
commit
dc0f396fbf
|
@ -150,7 +150,7 @@ class LdapUserBackend extends UserBackend
|
||||||
public function hasUser(User $user)
|
public function hasUser(User $user)
|
||||||
{
|
{
|
||||||
$username = $user->getUsername();
|
$username = $user->getUsername();
|
||||||
return $this->conn->fetchOne($this->selectUser($username)) === $username;
|
return strtolower($this->conn->fetchOne($this->selectUser($username))) === strtolower($username);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue