LDAP: Throw an exception if disabling LDAP referrals fails
Signed-off-by: Jarkko Lehtoranta <devel@jlranta.com>
This commit is contained in:
parent
97e14cccf2
commit
d87375cbaa
|
@ -590,6 +590,8 @@ class Connection extends LDAPUtility {
|
||||||
throw new \OC\ServerNotAvailableException('Start TLS failed, when connecting to LDAP host ' . $host . '.');
|
throw new \OC\ServerNotAvailableException('Start TLS failed, when connecting to LDAP host ' . $host . '.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
throw new \OC\ServerNotAvailableException('Could not disable LDAP referrals.');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new \OC\ServerNotAvailableException('Could not set required LDAP Protocol version.');
|
throw new \OC\ServerNotAvailableException('Could not set required LDAP Protocol version.');
|
||||||
|
|
Loading…
Reference in New Issue