LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-19-2006, 03:04 AM   #1
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 10.04
Posts: 198

Rep: Reputation: 33
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
 
Old 09-19-2006, 04:29 AM   #2
filex
Member
 
Registered: Sep 2004
Posts: 56

Rep: Reputation: 15
How about try command "slapcat"?
 
Old 09-19-2006, 08:33 PM   #3
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 10.04
Posts: 198

Original Poster
Rep: Reputation: 33
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
 
  


Reply

Tags
ldap


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing groupadd to execv() returned error msg: "file already locked." walwali Programming 9 11-22-2010 06:36 AM
how to stop "Returned Mail" messages from sendmail amushtaq Linux - Software 3 03-29-2006 05:37 PM
Conditional display of "HCL Entries" and "Reviews" ? J.W. LQ Suggestions & Feedback 1 09-01-2005 08:53 AM
JBuilder install cancels - "No message error returned" bpatters Linux - Software 0 04-02-2004 01:57 PM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 06:41 PM


All times are GMT -5. The time now is 02:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration