bug
This commit is contained in:
parent
37ac992222
commit
64e18fdcc2
|
@ -161,12 +161,12 @@ class LdapSearch extends Parametrable implements IteratorAggregate {
|
|||
if ($rr === false) return; // pas trouvé
|
||||
|
||||
try {
|
||||
$er = LdapException::check("first_entry", $conn, ldap_first_entry($conn, $rr), 32);
|
||||
$er = ldap_first_entry($conn, $rr);
|
||||
while ($er !== false) {
|
||||
$dn = ldap_get_dn($conn, $er);
|
||||
$entry = ldap_get_attributes($conn, $er);
|
||||
yield $dn => $entry;
|
||||
$er = LdapException::check("next_entry", $conn, ldap_next_entry($conn, $er), 32);
|
||||
$er = ldap_next_entry($conn, $er);
|
||||
}
|
||||
} catch (StopException $e) {
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue