Pass username only to LdapUser::getUser

This fix a bad ldap search filter as LdapUser::getUser already do the
LDAP_USER_FILTER expansion.
This commit is contained in:
Emmanuel Lacour 2016-02-01 11:03:37 +01:00 committed by Frederic Guillot
parent ca69fc0be7
commit cbb8fbe2dd
1 changed files with 1 additions and 1 deletions

View File

@ -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');