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

Re: backglue.c sometimes falsely returns LDAP_SIZELIMIT_EXCEEDED (ITS#2888)



Ralf is correct here.

A size limit exceed error (not to be confused with
administrative limit error) should only be returned when
the limit is exceeded.  If the limit is 1 and there
is only 1 entry to be returned, that limit has not been
exceeded.

Kurt

At 01:16 AM 12/20/2003, ando@sys-net.it wrote:
>This is a multi-part message in MIME format.
>--0508B7742347BCB7B790200C6486301CA46901AD
>Content-Type: text/plain; charset=us-ascii; format=flowed
>Content-Transfer-Encoding: 7bit
>
>rhafer@suse.de wrote:
>> Full_Name: Ralf Haferkamp
>> Version: 2.1.25 (guess HEAD too)
>> OS: SuSE Linux 9.0
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (212.95.107.74)
>> 
>> 
>> I have a setup similar to this: 
>> 
>> database ldap
>> uri "ldap://10.0.0.1/";
>> subordinate
>> suffix          "ou=people,dc=example,dc=com"
>> 
>> database        ldbm
>> cachesize       3000
>> directory       /var/lib/ldap
>> lastmod         on
>> mode            0600
>> suffix          "dc=example,dc=com"
>> 
>> If I do the following in search:
>> ldapsearch -x  uid=testuser -b "dc=example,dc=com" -z 1
>> 
>> The server returns one entry and the errorcode LDAP_SIZELIMIT_EXCEEDED. Even
>> though the whole tree (the ldbm database and subordinate ldap database) contain
>> only one entry which matches the filter. Search without "-z 1" also returns only
>> this one entry and LDAP_SUCCESS (which is correct).
>
>AFAIR this is the intended behavior, e.g. the server is informing
>the client that the requested limit has been reached, even if no
>more data would have been returned without the limit being enforced.
>
>Whether this behavior is acceptable can be debated, of course.
>
>p.
>
>Dr. Pierangelo Masarati         mailto:pierangelo.masarati@sys-net.it
>LDAP Architect, SysNet s.n.c.   http://www.sys-net.it
>
>--0508B7742347BCB7B790200C6486301CA46901AD
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline; filename=disclaimer.txt
>
>+----------------------------------------------------------------------------+
>|                                                                            |
>|                     Buon Natale e felice Anno Nuovo                        |
>|                                                                            |
>|   SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497   |
>+----------------------------------------------------------------------------+
>--0508B7742347BCB7B790200C6486301CA46901AD--