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

Queries fail after canceling query when using subordinate back-sql db (ITS#2999)

Full_Name: Guenther Starnberger
Version: 2.2.6
OS: Debian Woody (Linux)
URL: ftp://ftp.openldap.org/incoming/guenther-starnberger-040304.tar.gz
Submission from: (NULL) (

when using a subordinate sql backend together with a ldbm database canceling a
ldap query causes further ldap queries on the slapd to fail.

the problem is reproducable with the following steps:

1) setup a (postgres) db with the example files in rdbms_depend/pgsql/

2) the attached file ldbm-testdata.txt contains the testdata which i used for
the ldbm backend. i just used 'c=RU' as root, so that i don't have to modify the
sql example.

3) when i do a 'ldapsearch -b "c=RU"' and cancel it somewhere in the middle, the
next time i start it no objects are returned (and i have to restart slapd). if i
cancel it near the end of the output, sometimes the next run succeeds.

if i just use back-sql (without another database) and cancel the operation i
can't reproduce the problem.

there also a thread on the openldap-software mailinglist about this problem at