From cbb8fbe2dd2b2f1d5c9ead0228e2b7485ca7e417 Mon Sep 17 00:00:00 2001 From: Emmanuel Lacour Date: Mon, 1 Feb 2016 11:03:37 +0100 Subject: Pass username only to LdapUser::getUser This fix a bad ldap search filter as LdapUser::getUser already do the LDAP_USER_FILTER expansion. --- app/Api/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Api') diff --git a/app/Api/User.php b/app/Api/User.php index 48337ac6..21feb4fa 100644 --- a/app/Api/User.php +++ b/app/Api/User.php @@ -71,7 +71,7 @@ class User extends \Kanboard\Core\Base try { $ldap = LdapClient::connect(); - $user = LdapUser::getUser($ldap, sprintf(LDAP_USER_FILTER, $username)); + $user = LdapUser::getUser($ldap, $username); if ($user === null) { $this->logger->info('User not found in LDAP server'); -- cgit v1.2.3