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

Strange results from search


I am using LDAP Booster Pack to retrieve paged results from an
LDAP server.
The problem is that the search results returned by the server are
corrupted. This happens for some nodes (not all the nodes).

For example, the node at

has no child, but the slapd server returns to me that it has
'cn=ztcroot' as child (that is the root node of the DIT!).

Here is a snapshot of the log produced by slapd (loglevel 8+256+512)

conn=11 op=22 SRCH
base="ztc-device=000000000100,ou=temp1,ou=managedtrees,cn=ztcroot" scop
e=1 deref=3 filter="(objectClass=*)"
daemon: select: listen=6 active_threads=0 tvp=NULL
conn=11 op=22 ENTRY dn="cn=ztcroot"
conn=11 op=22 SEARCH RESULT tag=101 err=0 nentries=1 text=
daemon: activity on 1 descriptors
daemon: activity on: 13r
daemon: read activity on 13

this happens only when I use the paged results control. If I perform a
simple search, data are returned correctly. Here is the log produced by
slapd when I perform a search without controls (using ldapsearch).

conn=18 op=1 SRCH
scope=1 deref=3 filter="(objectClass=*)"
conn=18 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
daemon: activity on 1 descriptors
daemon: activity on: 14r

I am wondering if it can be a problem of wrong session cookies... can
you help me ?

Here below I attached openldap and db version information.

Thanks in advance, 

[root@ztc5 ZTC-Server]# /usr/sbin/slapd -V
@(#) $OpenLDAP: slapd 2.2.13 (Jul  2 2004 14:12:39) $

"Sleepycat Software: Berkeley DB 4.2.52: (July  9, 2004)"