summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-09-12 12:34:23 +0200
committerAleksander Machniak <alec@alec.pl>2013-09-12 12:34:23 +0200
commitc0fd4b1fcfecd6583b5d31dca7d46df8bd3882f3 (patch)
treee0af516615ff95c29333423a1a9172a85ffa9435 /lib
parent878894d3cd2f3f2002d2a973704ba3c4c9925385 (diff)
downloadwebadmin-c0fd4b1fcfecd6583b5d31dca7d46df8bd3882f3.tar.gz
Remove redundant list_replicas() calls
Diffstat (limited to 'lib')
-rw-r--r--lib/Auth/LDAP.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index 0c0ff91..2773495 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -210,6 +210,7 @@ class LDAP extends Net_LDAP3 {
);
$replica_hosts = $this->list_replicas();
+
if (!empty($replica_hosts)) {
foreach ($replica_hosts as $replica_host) {
Log::trace("Iterating over replication partners (now: $replica_host)");
@@ -270,7 +271,6 @@ class LDAP extends Net_LDAP3 {
'nsslapd-dncachememsize' => '10485760'
);
- $replica_hosts = $this->list_replicas();
if (!empty($replica_hosts)) {
foreach ($replica_hosts as $replica_host) {
$ldap = new Net_LDAP3($this->config);
@@ -376,7 +376,6 @@ class LDAP extends Net_LDAP3 {
),
);
- $replica_hosts = $this->list_replicas();
if (!empty($replica_hosts)) {
foreach ($replica_hosts as $replica_host) {
$ldap = new Net_LDAP3($this->config);