[Date Prev][Date Next]
ldapsearch not going through all the entries
I believe this is a newbie question but I have not found any answer
in the archives...
I have just setup an LDAP server which contains 2151 entries. But
when I try the following command :
ldapsearch -v -b 'ou=abook,dc=mydomain' '(objectclass=*)'
ldapsearch returns the results with no error reported, but I only get
The slapd.conf looks like this :
rootdn "cn=Manager, ou=abook, dc=mydomain"
index cn eq
a typical entry looks like this (this is the entry number 215) :
telephonenumber=01 23 45 67 89
fax=01 23 45 67 99
street=18, rue xxx
mobile=06 23 45 67 89
I have also tried to do the search binding as the rootdn with :
ldapsearch -v -u -D "cn=Manager,ou=abook,dc=mydomain" -W -z 0 -b 'ou=abook,dc=mydomain' '(objectclass=*)'
but I still only get 215 entries. I have also tried raising the limit of
sizelimit in slapd.conf (up to 1000 instead of default 500) but
BUT : when I'm using the abook.cgi Web based ldap client (from
ldap-abook) I can search and access the whole 2151 entries.
Another weird thing is that if I search for a sn whichc is after the
215 first entries, ldapsearch returns no result.
ldapsearch -v -b 'ou=abook,dc=mydomain' '(sn=Bxxxxx)'
returns the entry
ldapsearch -v -b 'ou=abook,dc=mydomain' '(sn=Bzzzzz)'
returns nothing though this entry exists as entry number 216
Please help !
I have the same problem with Pegasus mail LDAP client who will
not search beyond the 215 entry.
I have a Red Hat 6.1 linux server running OpenLDAP which was
installed with the system (I don't know how to determine the
version, according to man sldap this is at least OpenLDAP 1.2 21