summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Connection.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-07-13 08:25:02 +0200
committerJulius Härtl <jus@bitgrid.net>2018-07-13 08:25:10 +0200
commitc2616df541f6c81f2061275af1e232c6e58b77bc (patch)
tree78c831a519a98b14f3046e461d165608ce9653f3 /apps/user_ldap/lib/Connection.php
parent09d5b61c9e468cdc0b92db27946140e68192e2e5 (diff)
downloadnextcloud-server-c2616df541f6c81f2061275af1e232c6e58b77bc.tar.gz
nextcloud-server-c2616df541f6c81f2061275af1e232c6e58b77bc.zip
Only bind if configuration for the first server is available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/user_ldap/lib/Connection.php')
-rw-r--r--apps/user_ldap/lib/Connection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php
index 85e6ad6fd9e..c912d9f89f8 100644
--- a/apps/user_ldap/lib/Connection.php
+++ b/apps/user_ldap/lib/Connection.php
@@ -576,8 +576,8 @@ class Connection extends LDAPUtility {
if (!$isOverrideMainServer) {
$this->doConnect($this->configuration->ldapHost,
$this->configuration->ldapPort);
+ return $this->bind();
}
- return $this->bind();
} catch (ServerNotAvailableException $e) {
if(!$isBackupHost) {
throw $e;