summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJarkko Lehtoranta <devel@jlranta.com>2017-07-01 15:36:19 +0300
committerJarkko Lehtoranta <devel@jlranta.com>2017-07-23 14:50:01 +0300
commitd87375cbaac1671bda7dea6a53035f35ee99defb (patch)
tree8fc5e58efa7bdbaf12885da0d1ebb702dc35383e /apps
parent97e14cccf2410d163e800b19bdf48019bc3ba293 (diff)
downloadnextcloud-server-d87375cbaac1671bda7dea6a53035f35ee99defb.tar.gz
nextcloud-server-d87375cbaac1671bda7dea6a53035f35ee99defb.zip
LDAP: Throw an exception if disabling LDAP referrals fails
Signed-off-by: Jarkko Lehtoranta <devel@jlranta.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/Connection.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php
index f286a2450c6..aa8e9cf1eaa 100644
--- a/apps/user_ldap/lib/Connection.php
+++ b/apps/user_ldap/lib/Connection.php
@@ -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.');