|
|
@@ -56,7 +56,7 @@ class Connection extends LDAPUtility { |
|
|
|
//cache handler |
|
|
|
protected $cache; |
|
|
|
|
|
|
|
//settings handler |
|
|
|
/** @var Configuration settings handler **/ |
|
|
|
protected $configuration; |
|
|
|
|
|
|
|
protected $doNotValidate = false; |
|
|
@@ -169,7 +169,7 @@ class Connection extends LDAPUtility { |
|
|
|
$this->establishConnection(); |
|
|
|
} |
|
|
|
if(is_null($this->ldapConnectionRes)) { |
|
|
|
\OCP\Util::writeLog('user_ldap', 'No LDAP Connection to server ' . $this->connection->ldapHost, \OCP\Util::ERROR); |
|
|
|
\OCP\Util::writeLog('user_ldap', 'No LDAP Connection to server ' . $this->configuration->ldapHost, \OCP\Util::ERROR); |
|
|
|
throw new ServerNotAvailableException('Connection to LDAP server could not be established'); |
|
|
|
} |
|
|
|
return $this->ldapConnectionRes; |