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

ldapsearch not going through all the entries



Hello,

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 
215 matches.

The slapd.conf looks like this :

include         /etc/openldap/slapd.at.conf
include         /etc/openldap/slapd.oc.conf
schemacheck     off
defaultaccess   read
database        ldbm
suffix          "ou=abook,dc=mydomain"
rootdn          "cn=Manager, ou=abook, dc=mydomain"
rootpw          secret
directory       /usr/ldap/abook
index           cn eq

a typical entry looks like this (this is the entry number 215) :

Jean-Pierre Bxxxxx,ou=abook,dc=mydomain
objectclass=abookPerson
cn=Jean-Pierre Bxxxxx
sn=Bxxxxx
givenname=Jean-Pierre
title=Monsieur
description=BANQUE
businesscategory=Journaliste
telephonenumber=01 23 45 67 89
fax=01 23 45 67 99
street=18, rue xxx
l=PARIS
postalcode=75000
mobile=06 23 45 67 89
info=NOT ASCII
category=4_Contacts div
phonelist=Yes
samelastname=Yes

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 
nothing changes.

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.

i.e. : 

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 
July 1999).
--
Tardis