[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: openLDAP paged response problem
Thanks for all you input.
Trying the ldapsearch with -E pr(paged result) command gives the same
error
DB2-95-02:~ # ldapsearch -E '!pr=10' -x -h 10.217.94.154 -b
"dc=openldap,dc=dev,dc=net6,dc=com" -s sub '(objectclass=person)' dn
# extended LDIF
#
# LDAPv3
# base <dc=openldap,dc=dev,dc=net6,dc=com> with scope subtree
# filter: (objectclass=person)
# requesting: dn
# with pagedResults critical control: size=10
#
# search result
search: 2
result: 53 Server is unwilling to perform
text: critical control unavailable in context
Following is listing from slapd.conf file
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
# Allow LDAPv2 client connections. This is NOT the default.
allow bind_v2
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
# Load dynamic backend modules:
# modulepath /usr/lib/openldap
# moduleload back_bdb.la
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la
#######################################################################
# ldbm and/or bdb database definitions
#######################################################################
database ldbm
suffix "dc=openldap,dc=dev,dc=net6,dc=com"
rootdn "cn=Manager,dc=openldap,dc=dev,dc=net6,dc=com"
rootpw {SSHA}password_here
directory /var/lib/ldap
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub
# Replicas of this database
defaultaccess write
Seems like we use ldbm database. Does it support paged result in the
version we use (2.3.19)? If not, is it supported in a later version?
Thanks,
Navaneetha
-----Original Message-----
From:
openldap-software-bounces+navaneetha.subramanian=citrix.com@OpenLDAP.org
[mailto:openldap-software-bounces+navaneetha.subramanian=citrix.com@Open
LDAP.org] On Behalf Of Pierangelo Masarati
Sent: Thursday, October 23, 2008 7:57 AM
To: Dieter Kluenter
Cc: openldap-software@openldap.org
Subject: Re: openLDAP paged response problem
Dieter Kluenter wrote:
> Hi,
>
> "Navaneetha Subramanian" <Navaneetha.Subramanian@citrix.com> writes:
>
>> Hi,
>>
>> I'm using OpenLDAP backend with .NET 2.0
System.DirectoryServices.Protocols API in my
>> application. I'm trying to issue PagedResult control as part of my
request to get
>> results in multiple pages that code can navigate. This would use
rfc2696 which is
>> already supported in OpenLDAP. But when I run my code it comes back
with exception
>> that ''critical control unavailable in context'.
>>
>> I've attached the capture from OpenLDAP server
>
> try ldapsearch -Epr=10 -x -H ldap://<host> -b <searchbase> <filter>
> <attributes>
>
> -E calls extended operations pr is paged result 10 the number of
> returned entries.
Actually, you should use -E '!pr=10'; the '!' means "critical". This
would reproduce the exact condition that triggered the error you
noticed.
p.
Ing. Pierangelo Masarati
OpenLDAP Core Team
SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
-----------------------------------
Office: +39 02 23998309
Mobile: +39 333 4963172
Fax: +39 0382 476497
Email: ando@sys-net.it
-----------------------------------