From 7c2bf746f2790e724b56bb1b05614bd1cd6df2f4 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 20 Feb 2015 19:42:27 -0500 Subject: Lowercase LDAP usernames by default for authentication --- app/Auth/Ldap.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/Auth/Ldap.php') diff --git a/app/Auth/Ldap.php b/app/Auth/Ldap.php index e9bb5815..376d16f6 100644 --- a/app/Auth/Ldap.php +++ b/app/Auth/Ldap.php @@ -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)) { -- cgit v1.2.3