Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-07-13 09:25:02 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-07-13 16:42:31 +0300
commit7c8cec808ff0fe83995551b2f656771012147898 (patch)
tree4c8c407ea9994ed0be1a14d12593273bc2b614fb
parent30dea9906ac805f1ece26c68061e1d10ac0159fb (diff)
Only bind if configuration for the first server is available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-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 039e46aeefd..8bbe0345859 100644
--- a/apps/user_ldap/lib/Connection.php
+++ b/apps/user_ldap/lib/Connection.php
@@ -564,8 +564,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;