wizard should also detect protocol errors, as side effect enforces LDAPv3
This commit is contained in:
parent
a32b002cff
commit
86fcb08745
1 changed files with 3 additions and 0 deletions
|
@ -570,6 +570,7 @@ class Connection extends LDAPUtility {
|
|||
* @param string $host
|
||||
* @param string $port
|
||||
* @return false|void
|
||||
* @throws \OC\ServerNotAvailableException
|
||||
*/
|
||||
private function doConnect($host, $port) {
|
||||
if(empty($host)) {
|
||||
|
@ -582,6 +583,8 @@ class Connection extends LDAPUtility {
|
|||
$this->ldap->startTls($this->ldapConnectionRes);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
throw new \OC\ServerNotAvailableException('Could not set required LDAP Protocol version.');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue