LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   About returned all entries by "ldapsearch -x" (http://www.linuxquestions.org/questions/linux-software-2/about-returned-all-entries-by-ldapsearch-x-484877/)

PhillipHuang 09-19-2006 03:04 AM

About returned all entries by "ldapsearch -x"
 
Hi,All,

As known, in OpenLDAP's "slapd.conf" file, set the "sizelimit" to "-1" will unlimite the number of returned entries. If the sizelimit is set a common number, e.g. 3000, the max 3000 items would be returned back.

In my case, I want to use "ldapsearch -x" to get all the entries even the sizelimit has been set a small number.

First, I created a ldif file and import 20000 entries into OpenLDAP server, and then modify "sizelimit" in "slapd.conf" to 1000. Issue "ldapsearch -x", only returned 1000 entries as the sequence as they were added to the OpenLDAP.

I've tried use filter to split the 20000 entries into 1000 per page in order to return all entries by pages displaying. As the result, I failed at this testing, for I could not indicate the right range.

Would you please give me some advice on how to display all these 20000 entries by spliting into pages? Any suggestion appreciated.

Thanks and regards.
Phillip

filex 09-19-2006 04:29 AM

How about try command "slapcat"?

PhillipHuang 09-19-2006 08:33 PM

Thank you, filex. "sldapcat" stands on the OpenLDAP server, what I want is using "ldapsearch -x" on the Client to get all entries even the sizelimit has not been changed. I guess you advise me to export ldif file to the client, and then split them into pages, do i right?

Regards,
Phillip


All times are GMT -5. The time now is 08:48 AM.