summaryrefslogtreecommitdiffstats
path: root/lib/Auth
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-01-07 12:08:20 +0100
committerAleksander Machniak <alec@alec.pl>2014-01-07 12:08:20 +0100
commitcaea493be85751083d177016f83faca7759c56b0 (patch)
treec5f174eede616625020d35663eae4952f40b2897 /lib/Auth
parent2eb8ab1fa6caf11cc505c4fd63a50b465a02ea84 (diff)
downloadwebadmin-caea493be85751083d177016f83faca7759c56b0.tar.gz
Revert commit 109ad37d making email addresses case-insensitive
Diffstat (limited to 'lib/Auth')
-rw-r--r--lib/Auth/LDAP.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index 8ef191e..5850672 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -594,25 +594,7 @@ class LDAP extends Net_LDAP3 {
$result = $this->search_entries($this->config_get('root_dn'), '(objectclass=*)', 'sub', null, $search);
if ($result && $result->count() > 0) {
- $result = $result->entries(true);
-
- // LDAP searches are case-insensitive, post-process result
- // with correct character case handling
- foreach ($result as $key => $user) {
- foreach ($user as $attr => $list) {
- foreach ((array) $list as $addr) {
- if (compare_email($address, $addr)) {
- continue 3;
- }
- }
- }
-
- unset($result[$key]);
- }
-
- reset($result);
-
- return $result;
+ return $result->entries(true);
}
return false;