diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-07-13 08:25:02 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-07-13 15:42:31 +0200 |
commit | 7c8cec808ff0fe83995551b2f656771012147898 (patch) | |
tree | 4c8c407ea9994ed0be1a14d12593273bc2b614fb | |
parent | 30dea9906ac805f1ece26c68061e1d10ac0159fb (diff) | |
download | nextcloud-server-7c8cec808ff0fe83995551b2f656771012147898.tar.gz nextcloud-server-7c8cec808ff0fe83995551b2f656771012147898.zip |
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.php | 2 |
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; |