LDAP: Throw an exception if disabling LDAP referrals fails

Signed-off-by: Jarkko Lehtoranta <devel@jlranta.com>
This commit is contained in:
Jarkko Lehtoranta 2017-07-01 15:36:19 +03:00
parent 97e14cccf2
commit d87375cbaa
1 changed files with 2 additions and 0 deletions

View File

@ -590,6 +590,8 @@ class Connection extends LDAPUtility {
throw new \OC\ServerNotAvailableException('Start TLS failed, when connecting to LDAP host ' . $host . '.');
}
}
} else {
throw new \OC\ServerNotAvailableException('Could not disable LDAP referrals.');
}
} else {
throw new \OC\ServerNotAvailableException('Could not set required LDAP Protocol version.');