diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-05 00:43:38 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-05 00:43:38 +0100 |
commit | 86fcb0874582d48c0a0460579c6e8c94bb773645 (patch) | |
tree | d2f43cf2997460f32cfeb7fbc582ec53cae65864 /apps/user_ldap | |
parent | a32b002cff4ace48a06fe7f45be85cb64862fbbe (diff) | |
download | nextcloud-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.php | 3 |
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.'); } } |