summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-12-05 00:43:38 +0100
committerArthur Schiwon <blizzz@owncloud.com>2015-12-05 00:43:38 +0100
commit86fcb0874582d48c0a0460579c6e8c94bb773645 (patch)
treed2f43cf2997460f32cfeb7fbc582ec53cae65864 /apps/user_ldap
parenta32b002cff4ace48a06fe7f45be85cb64862fbbe (diff)
downloadnextcloud-server-86fcb0874582d48c0a0460579c6e8c94bb773645.tar.gz
nextcloud-server-86fcb0874582d48c0a0460579c6e8c94bb773645.zip
wizard should also detect protocol errors, as side effect enforces LDAPv3
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/connection.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php
index 57dc060f38e..67918bca409 100644
--- a/apps/user_ldap/lib/connection.php
+++ b/apps/user_ldap/lib/connection.php
@@ -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.');
}
}