summaryrefslogtreecommitdiff
path: root/app/Core/Ldap/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Ldap/User.php')
-rw-r--r--app/Core/Ldap/User.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Core/Ldap/User.php b/app/Core/Ldap/User.php
index 0c9df63f..04c4cc7e 100644
--- a/app/Core/Ldap/User.php
+++ b/app/Core/Ldap/User.php
@@ -17,10 +17,10 @@ class User
/**
* Query
*
- * @access private
+ * @access protected
* @var Query
*/
- private $query;
+ protected $query;
/**
* Constructor
@@ -44,7 +44,8 @@ class User
*/
public static function getUser(Client $client, $username)
{
- $self = new self(new Query($client));
+ $className = get_called_class();
+ $self = new $className(new Query($client));
return $self->find($self->getLdapUserPattern($username));
}