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

Re: Size Limits



Hi Ian,

"Ian Barnes" <ian@rkki.co.za> writes:

> Thanks Dieter,
>
> That seems to work fine thanks. Is there any way that I can make it not
> prompt me for the next batch? 

AFAIK not with ldapsearch, as this is only a simple tool for proof of
concept and function.
But you may write your own shell script or expect which will do this.

-Dieter


> "Ian Barnes" <ian@rkki.co.za> writes:
>
>> Hi,
>>
>> I am trying to get a list of about 28,000 usernames back from an AD
> Server.
>> I am running OpenLDAP 2.2 and I cant get past 1000 returned entries. I
> have
>> manually specified -z 0 but still it stops at 1000. The owners of the AD
>> Server say that there must be some way that I can use "page stepping" to
>> return the total list. Can I do this? I am using ldapsearch to connect and
>> then PHP to parse the returned entries.
>
> Depending on the OpenLDAP version you may initiate the extended
> operation paged results, that is ldapsearch -Epr=500 which will show
> you all entries in a sequence of 500
>
> -Dieter

-- 
Dieter Klünter | Systemberatung
http://www.dkluenter.de
GPG Key ID:01443B53