diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php index f286a2450c..aa8e9cf1ea 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.');