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

indexing objectclass leads to unpredictable results (ITS#1969)



Full_Name: Andrew Findlay
Version: 2.1.3
OS: FreeBSD 4.6-RELEASE-p1
URL: http://www.skills-1st.co.uk/pub/misc/openldap-index-log-20020718-1
Submission from: (NULL) (217.206.98.194)


Indexing objectclass seems to be leading to odd results on more complex
searches.
The form of search I am using is:

"(&(|(objectClass=person)(objectClass=organizationalRole))(uid=u000007))"

Without the objectclass index it behaves as expected (in this case, returning
one entry).

With 'index objectclass eq' in slapd.conf I am getting the entry returned
twice.
This is after reloading the database from scratch. On a previous test I got no
results at all.

I tried to reproduce the problem with a 'cn' index but that behaved normally.

I have put the log from two test searches on the web at
http://www.skills-1st.co.uk/pub/misc/openldap-index-log-20020718-1

The database is unchanged between the two, but the server was restarted with
indexing turned off for the second test. No other attributes are indexed.

Berkeley DB db4-4.0.14 is in use, running on FreeBSD 4.6-RELEASE-p1