On 16 Oct 2007, at 19:26, [EMAIL PROTECTED] wrote:
Dear developers,
I am trying to get some data from my ldap server, I have an
administrative limit set to 10,000 (this means that only 10,000
objects
will be returned from a search) and I have about 150,000 entries in my
directory server, the number of entries that match my criteria is
higher
than 10,000; my question is, is there a way to retrieve all the needed
data? For example how can I look for the first 7,000 entries then
start
a new search from there to the next 7,000 entries??or if there's a
better way please let me know.
If your server supports it, you can use the PagedResults control.
That is usually implemented in a way which will let you return more
than the administrative limit, but in small chunks called "pages".
Net::LDAP supports the PagedResults control. The documentation
(including an example's) at:
<http://search.cpan.org/~gbarr/perl-ldap/lib/Net/LDAP/Control/Paged.pm>
Cheers,
Chris