Added more logging for LDAP client

This commit is contained in:
Frederic Guillot
2016-03-27 18:30:02 -04:00
parent cefeb7ef96
commit d0a0be89f2
5 changed files with 46 additions and 3 deletions

View File

@@ -44,8 +44,7 @@ class User
*/
public static function getUser(Client $client, $username)
{
$className = get_called_class();
$self = new $className(new Query($client));
$self = new static(new Query($client));
return $self->find($self->getLdapUserPattern($username));
}