[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: retrieve all entries of a search



Dieter Kluenter wrote:

Francois Beretti <francois.beretti@enatel.com> writes:



Hello,

due to search results limits (in size and operation time), a call to
ldap_search_ext_s() won't allways retrieve all the entries matching
the search. What is the best way to achieve this goal ?
I don't want answers like "log as rootdn" please :-)

In 2.2 you can specify limits based on the identity that's requesting the search; these limits include "unlimited". See "limits" in slapd.conf(5).


is it possible to do several searches ? I know that paged searches are not yet implemented in OpenLDAP.

The only way I found is to make a first search, then build a huge
filter excluding the previous results, and do it until there is no
more result. Completly stupid :)



Extended Control paged results is supported by OpenLDAP
ldapsearch -Epr=<n>


... since 2.1; there were selected bugs which were fixed in 2.2 at some point.

p.



   SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497