diff --git a/nur_src/ldap/LdapSearch.php b/nur_src/ldap/LdapSearch.php index 956ed10..b49bae7 100644 --- a/nur_src/ldap/LdapSearch.php +++ b/nur_src/ldap/LdapSearch.php @@ -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 {