diff options
Diffstat (limited to 'app/Core/Ldap/Client.php')
-rw-r--r-- | app/Core/Ldap/Client.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Core/Ldap/Client.php b/app/Core/Ldap/Client.php index 63149ae3..05658190 100644 --- a/app/Core/Ldap/Client.php +++ b/app/Core/Ldap/Client.php @@ -31,7 +31,7 @@ class Client */ public static function connect($username = null, $password = null) { - $client = new self; + $client = new static; $client->open($client->getLdapServer()); $username = $username ?: $client->getLdapUsername(); $password = $password ?: $client->getLdapPassword(); @@ -60,6 +60,7 @@ class Client * Establish server connection * * @access public + * @throws ClientException * @param string $server LDAP server hostname or IP * @param integer $port LDAP port * @param boolean $tls Start TLS @@ -98,6 +99,7 @@ class Client * Anonymous authentication * * @access public + * @throws ClientException * @return boolean */ public function useAnonymousAuthentication() @@ -113,6 +115,7 @@ class Client * Authentication with username/password * * @access public + * @throws ClientException * @param string $bind_rdn * @param string $bind_password * @return boolean |