--On Monday, March 19, 2007 2:06 PM +0100 Vincent MATHIEU <[EMAIL PROTECTED]> wrote:

I try to do a search with an openldap server.
This search can return a very large number of entries (> 30 000) ; the
sizelimit parameter in slapd.conf is set to 2100.

I use a code like the example in paged.pm
(http://search.cpan.org/~gbarr/perl-ldap/lib/Net/LDAP/Control/Paged.pm).
I set size parameter of Net::LDAP::Control::Paged to 1000.

openldap return's 1000 entries with 2 first search call, but an error
code 4 (Sizelimit exceeded) occurs in third search call :

conn=6 op=1 SRCH base="ou=people,dc=univ-nancy2,dc=fr" scope=2 deref=2
filter="(objectClass=inetOrgPerson)"
conn=6 op=1 SRCH attr=cn sn givenName mail
conn=6 op=1 SEARCH RESULT tag=101 err=0 nentries=1000 text=
conn=6 op=2 SRCH base="ou=people,dc=univ-nancy2,dc=fr" scope=2 deref=2
filter="(objectClass=inetOrgPerson)"
conn=6 op=2 SRCH attr=cn sn givenName mail
conn=6 op=2 SEARCH RESULT tag=101 err=0 nentries=1000 text=
conn=6 op=3 SRCH base="ou=people,dc=univ-nancy2,dc=fr" scope=2 deref=2
filter="(objectClass=inetOrgPerson)"
conn=6 op=3 SRCH attr=cn sn givenName mail
conn=6 op=3 SEARCH RESULT tag=101 err=4 nentries=100 text=


Is it the normal behaviour ?

Generally, I'd expect questions about how openldap behaves to go to the openldap-software@openldap.org list.

If each page is 1000 entries, then yes, I'd expect you would get a sizelimit exceed once you hit the 3rd page. One of the functions of setting a sizelimit is to prevent clients from doing unreasonably large search requests. I've not played with the paged results control, so I don't know if it is supposed to override the sizelimit setting, but I doubt that'd be generally allowed.

You may want to follow up with the correct list.

--Quanah



--
Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

Reply via email to