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

openldap: Sizelimit exceeded problem



Hello,

I need your help to resolve "Sizelimit exceeded" problem
1. LDAP server runs  openldap v.2.0.9
    Please see configuration of slapd.conf bellow
    I set line in slapd.conf
    sizelimit 500
    explicitly.

2. I used the ldapsearch utility to query database. It returns 2
records.
    I attached the result of search bellow.

3. My application runs LDAP API ldap_search_s with ldapsearch parameters

    base dc=test,dc=com
    filter (member=cn=Penny Gold,dc=test,dc=com)
    rc = ldap_search_s (session->ld, session->conf->base,
                       session->conf->scope, filter, NULL, 0, &res);
    It returns an error
    Error LDAP search_s Sizelimit exceeded

Would you, please, help me to understand the problem?
Thank you,

Leon



[root@server openldap-2.0.9]# vi /usr/local/etc/openldap/slapd.conf
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.6 2001/04/20
23:32:43 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /usr/local/etc/openldap/schema/core.schema

#schemacheck off
# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral       ldap://root.openldap.org

pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args

# Load dynamic backend modules:
# modulepath    /usr/local/libexec/openldap
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la

sizelimit 500

#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "dc=test,dc=com"
rootdn          "dc=test,dc=com"
#suffix         "o=My Organization Name,c=US"
#rootdn         "cn=Manager,dc=test,dc=com"
#rootdn         "dc=test,dc=com"
#rootdn         "cn=Manager,o=My Organization Name,c=US"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory       /usr/local/var/openldap-ldbm
# Indices to maintain
index   objectClass     eq

[root@vista openldap-2.0.9]# ldapsearch -x -h localhost -b
"dc=test,dc=com" -s sub '(member=cn=Penny Gold,dc=test,dc=com)'
version: 2

#
# filter: (member=cn=Penny Gold,dc=test,dc=com)
# requesting: ALL
#

# AdminCDN,dc=test,dc=com
dn:: Y249QWRtaW5DRE4sZGM9Y2FjaGVfZW5naW5lLGRjPWNvbSA=
cn: AdminCDN
objectClass: organization
objectClass: groupOfNames
o: TestGroup
member:: Y249UGVubnkgR29sZCxkYz1jYWNoZV9lbmdpbmUsZGM9Y29tIA==

# InternetCDN,dc=test,dc=com
dn: cn=InternetCDN,dc=test,dc=com
cn: InternetCDN
objectClass: organization
objectClass: groupOfNames
o: TestGroup
member: cn=Penny Gold,dc=test,dc=com

# search result
search: 2
result: 0 Success

# numResponses: 3
# numEntries: 2