On 24-Sep-2002 at 16:02:04 Anthony E. Greene wrote:
>>The problem is I know little about ldap as such and have no dealing with
>>the server. I gather there is a limit imposed of returning 1000 records
>>(a 'page' I am told) each time. My question though is how do I tell
>>ldapsearch to 'get the next 1000 records', so that I can create a loop
>>and retrieve all the records?
> 
> There is no straightforward way to do this.
>
So it seems :-) Is this not a common request?

> You can create a shell script that runs a query for each letter of the
> alphabet, but if any query results in more than 1000 entries, you'll have
> to run a second loop for 26 variations of that letter. Assuming your
> ~/.ldaprc file has the basic hostname and searchbase options set, the
> queries could be put in a shell script that looks like this:
> 
[snipped]
Many thanks for the script. I think I am more inclined towards a way that
works on the unix side, albeit slow, rather than having to get the ldap
server to do anything  - e.g. dumping the user list and then getting it up
to the linux/unix boxes. I'd rather a 'pull' than a 'push' :-)

I'll probably try a basic script just to see how it goes, how long it takes
and the like.


John.

------------------------------------------------------------------------
John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914
E-mail: [EMAIL PROTECTED]
PGP key available from public key servers



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to