summaryrefslogtreecommitdiff
path: root/app/Api
diff options
context:
space:
mode:
authorEmmanuel Lacour <elacour@easter-eggs.com>2016-02-01 11:03:37 +0100
committerFrederic Guillot <fred@kanboard.net>2016-03-12 22:44:13 -0500
commitcbb8fbe2dd2b2f1d5c9ead0228e2b7485ca7e417 (patch)
tree35b0220e546ca11e9eb42fdb6d9773ece23bbce9 /app/Api
parentca69fc0be7c48eb7643ab0ae2114ac0be32fe662 (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.php2
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');