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

ldapsearch fails with limit exceeded



ldapsearch returns max. 2000 items, hot honouring the
Size limit exceeded (4)
This problem and a possible solution have been proposed already some years ago at:
http://www.openldap.org/lists/openldap-software/200310/msg00454.html


...
Is it possible to ask openldap get [0..500] then [501..600]... etc?

If you want to toy with paged results (elective) extension to LDAP,
you might try 2.2 (currently in beta). ....


My current ldapsearch :

ldapsearch: @(#) $OpenLDAP: ldapsearch 2.2.26 (Jun 26 2006 13:03:11) $
       buildd@terranova:/build/buildd/openldap2.2-2.2.26/debian/build/clients/tools
       (LDAP library: OpenLDAP 20226)

seems to contain some support for this:
root@de70171c:/home# type ldapsearch
ldapsearch is hashed (/usr/bin/ldapsearch)
root@de70171c:/home# strings /usr/bin/ldapsearch|grep paged
            [!]pr=<size>[/prompt|noprompt]   (paged results/prompt)
Invalid entries estimate in paged results response.
# with pagedResults %scontrol: size=%d

man ldapsearch does not mention anything about it, so does ldapsearch support this "paged results"? If so, how can I make use of it?

Thanks
Norbert Wegener