summaryrefslogtreecommitdiffstats
path: root/lib/Auth/LDAP.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-09-10 09:28:02 +0200
committerAleksander Machniak <alec@alec.pl>2013-09-10 09:28:02 +0200
commit49651423dbd22b1cdb736a6b84323a92f9548882 (patch)
treeee5c3efd84151845693327e65f73b07ad1f19e90 /lib/Auth/LDAP.php
parent16b8953a659bf316495ab2076ff6a1c8d27f8dea (diff)
downloadwebadmin-49651423dbd22b1cdb736a6b84323a92f9548882.tar.gz
Fix unhandled ldap errors + some CS fixes (Bug #2201)
Diffstat (limited to 'lib/Auth/LDAP.php')
-rw-r--r--lib/Auth/LDAP.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index 989d58a..0434b45 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -1249,7 +1249,7 @@ class LDAP extends Net_LDAP3 {
'attributeLevelRights' => array(),
);
- $subject = $this->_search($subject_dn);
+ $subject = $this->_search($subject_dn);
if (!$subject) {
return $rights;
@@ -1386,7 +1386,7 @@ class LDAP extends Net_LDAP3 {
$domain_name_attribute = 'associateddomain';
}
- $domain_filter = "(&" . $domain_filter . "(" . $domain_name_attribute . "=" . $domain . "))";
+ $domain_filter = "(&" . $domain_filter . "(" . $domain_name_attribute . "=" . $domain . "))";
$result = $this->_search($domain_base_dn, $domain_filter);
@@ -1394,8 +1394,8 @@ class LDAP extends Net_LDAP3 {
return $this->_standard_root_dn($domain);
}
- $entries = $result->entries(true);
- $entry_dn = key($entries);
+ $entries = $result->entries(true);
+ $entry_dn = key($entries);
$entry_attrs = $entries[$entry_dn];
if (is_array($entry_attrs)) {