Browse Source

Only bind if configuration for the first server is available

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/10227/head
Julius Härtl 7 years ago
parent
commit
c2616df541
No known key found for this signature in database GPG Key ID: 4C614C6ED2CDE6DF
  1. 2
      apps/user_ldap/lib/Connection.php

2
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;

Loading…
Cancel
Save