On 8/1/05 7:46 am, abdul mulla <[EMAIL PROTECTED]> wrote:
> Greetings Folks,
>
> I am using perl LDAP package to construct a similar
> search that I am able to construct using ldapsearch
> utility that comes with most LDAP servers. I would
> like to set a size limit of returned values from the
> client end.
>
> I have currently set default size limit on LDAP server
> to 300 entries if size limit is not defined by the
> ldap client. Usually the I would pass '-z' switch in
> ldapsearch utility to set the number of returned
> values. However, I can not see how I am able to
> achieve this using Net::LDAP::Search.
>
> I can not afford to set the size limit at the LDAP
> server end as this will increase its workload.
>
> Please can you advise me a method I should follow to
> set the size limit from client end that uses Perl LDAP
> packages. Thanks in advance.
>
> - Abdul
$ldap->search(base => 'o=foo',
sizelimit => 300,
...);
Cheers,
Chris