Lowercase LDAP usernames by default for authentication

This commit is contained in:
Frederic Guillot
2015-02-20 19:42:27 -05:00
parent 8214aae1d6
commit 7c2bf746f2
4 changed files with 15 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ class Ldap extends Base
*/
public function authenticate($username, $password)
{
$username = LDAP_USERNAME_CASE_SENSITIVE ? $username : strtolower($username);
$result = $this->findUser($username, $password);
if (is_array($result)) {