summaryrefslogtreecommitdiff
path: root/app/Auth/Ldap.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-20 19:42:27 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-20 19:42:27 -0500
commit7c2bf746f2790e724b56bb1b05614bd1cd6df2f4 (patch)
treebb6ba812375bd35efd2ba1028e281811521da1c5 /app/Auth/Ldap.php
parent8214aae1d6c60b3d6726729d7532d8ee0df629ce (diff)
Lowercase LDAP usernames by default for authentication
Diffstat (limited to 'app/Auth/Ldap.php')
-rw-r--r--app/Auth/Ldap.php1
1 files changed, 1 insertions, 0 deletions
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)) {