diff options
author | Emmanuel Lacour <elacour@easter-eggs.com> | 2016-02-01 11:03:37 +0100 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-12 22:44:13 -0500 |
commit | cbb8fbe2dd2b2f1d5c9ead0228e2b7485ca7e417 (patch) | |
tree | 35b0220e546ca11e9eb42fdb6d9773ece23bbce9 /app/Api | |
parent | ca69fc0be7c48eb7643ab0ae2114ac0be32fe662 (diff) |
Pass username only to LdapUser::getUser
This fix a bad ldap search filter as LdapUser::getUser already do the
LDAP_USER_FILTER expansion.
Diffstat (limited to 'app/Api')
-rw-r--r-- | app/Api/User.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |