summaryrefslogtreecommitdiff
path: root/plugins/kolab_auth
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-03-14 13:05:26 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-03-14 13:05:26 (GMT)
commit32ffbe0adecb0ae26f90e60f856cde8506e03227 (patch)
tree1d31a3f14a2315a6b5be9b4a46ccbc90910d9bb0 /plugins/kolab_auth
parentdf2ed0d8e6417eea9718b92324d56d524173f6e3 (diff)
downloadroundcubemail-plugins-kolab-32ffbe0adecb0ae26f90e60f856cde8506e03227.tar.gz
Fix case-sensitivity in normalization/mapping of LDAP entries (Bug #2905)
Diffstat (limited to 'plugins/kolab_auth')
-rw-r--r--plugins/kolab_auth/kolab_auth_ldap.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/kolab_auth/kolab_auth_ldap.php b/plugins/kolab_auth/kolab_auth_ldap.php
index ddf7cff..d529b73 100644
--- a/plugins/kolab_auth/kolab_auth_ldap.php
+++ b/plugins/kolab_auth/kolab_auth_ldap.php
@@ -329,12 +329,14 @@ class kolab_auth_ldap extends rcube_ldap_generic
// fields mapping
foreach ($this->fieldmap as $field => $attr) {
- // $entry is indexed by lower-case attribute names
+ // $entry might be indexed by lower-case attribute names
$attr_lc = strtolower($attr);
if (isset($entry[$attr_lc])) {
$entry[$field] = $entry[$attr_lc];
}
- // @TODO: consider returning also $entry[$attr] when $attr != $attr_lc
+ else if (isset($entry[$attr])) {
+ $entry[$field] = $entry[$attr];
+ }
}
return $entry;