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

searching for the same object twice using the meta backend returns "no such object" on the second search (ITS#2289)



Full_Name: Tony Bates
Version: 2.1.12
OS: Solaris 2.8
URL: ftp://ftp.openldap.org/incoming/tony-bates-030123.ext
Submission from: (NULL) (24.112.165.201)


When searching for the same object twice while bound either anonymously or with
credentials the second search always returns "ldap_search: No such object".   
This is specific to the meta backend as the regular ldap backend doesn't display
this problem.

Using 2 command line ldapsearch in sequence is fine:
bind->search->unbind->bind->search->unbind:

ldapsearch -h localhost -s base -b "ou=ca2,o=test org,c=ca" objectclass=* ;
ldapsearch -h localhost -s base -b "ou=ca2,o=test org,c=ca" objectclass=*

But using ldapsearch with the "-r 2" option returns the proper info for the
first search but "no such object" for the second search:  
bind->search->search->unbind:

ldapsearch -r 2 -h localhost -s base -b "ou=ca2,o=test org,c=ca" objectclass=*

I got the same result using the stock Solaris 2.8 ldapsearch which doesn't have
the "-r" option but does have a "-f" option which allows input from a file for
multiple searches.