Update Net_LDAP3_Result->get_dn()
This commit is contained in:
parent
fee3773c3b
commit
0d9e422811
1 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ class kolab_auth_ldap extends rcube_ldap_generic
|
|||
foreach ($result as $entry) {
|
||||
$entry = rcube_ldap_generic::normalize_entry($entry);
|
||||
if (!$entry['dn']) {
|
||||
$entry['dn'] = $result->get_dn();
|
||||
$entry['dn'] = key($result->entries(true));
|
||||
}
|
||||
$groups[$entry['dn']] = $entry[$name_attr];
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ class kolab_auth_ldap extends rcube_ldap_generic
|
|||
if ($limit && $limit <= $i) {
|
||||
break;
|
||||
}
|
||||
$dn = $result->get_dn();
|
||||
$dn = key($result->entries(true));
|
||||
$entry = rcube_ldap_generic::normalize_entry($entry);
|
||||
$list[$dn] = $this->field_mapping($dn, $entry);
|
||||
$i++;
|
||||
|
|
Loading…
Add table
Reference in a new issue