summaryrefslogtreecommitdiff
path: root/plugins/kolab_auth
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-11-06 09:44:30 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-11-06 09:44:30 (GMT)
commit469c26b973de847db486b6687e132cc6ddff4f11 (patch)
tree510a52ed4406613e2e8de13b1f5af13aa4f76f65 /plugins/kolab_auth
parent6b43156b55ee5c1c7a90b940c3567fb7d6cf57b8 (diff)
downloadroundcubemail-plugins-kolab-469c26b973de847db486b6687e132cc6ddff4f11.tar.gz
Fix bug where dosearch() always returned an array with max. one element (#3619)
Diffstat (limited to 'plugins/kolab_auth')
-rw-r--r--plugins/kolab_auth/kolab_auth_ldap.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/kolab_auth/kolab_auth_ldap.php b/plugins/kolab_auth/kolab_auth_ldap.php
index 303bbf3..9784427 100644
--- a/plugins/kolab_auth/kolab_auth_ldap.php
+++ b/plugins/kolab_auth/kolab_auth_ldap.php
@@ -310,7 +310,8 @@ class kolab_auth_ldap extends rcube_ldap_generic
if ($limit && $limit <= $i) {
break;
}
- $dn = key($result->entries(true));
+
+ $dn = $entry['dn'];
$entry = rcube_ldap_generic::normalize_entry($entry);
$list[$dn] = $this->field_mapping($dn, $entry);
$i++;