[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-ldap-dev
Subject:    Re: LDAP Search
From:       Chris Ridd <chrisridd () mac ! com>
Date:       2007-10-17 9:44:07
Message-ID: 6D838D94-C710-4318-8635-55AC57BA576F () mac ! com
[Download RAW message or body]


On 16 Oct 2007, at 19:26, PETER_CHARBEL@CRGL-THIRDPARTY.COM 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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic