Issue 116 - failure of indexed searches using db-2.3.16
Summary: failure of indexed searches using db-2.3.16
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-03-31 17:15 UTC by brooks@uwm.edu
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description brooks@uwm.edu 1999-03-31 17:15:19 UTC
Full_Name: Brooks Smith
Version: 1.2
OS: Redhat linux 5.2 - kernel 2.0.36
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (129.89.70.19)


I made slapd from the 1.2 release using Sleepcat db-2.3.16.  I generated a test
LDAP database using 113 entries in ldif format using ldif2ldbm.

My slapd.conf file looks like:

#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "o=uwm.edu"
#suffix         "o=Your Organization Name, c=US"
directory       /usr/local/etc/openldap/db
rootdn          "uid=brooks, ou=people, o=uwm.edu"
#rootdn         "cn=root, o=Your Organization Name, c=US"
rootpw          {crypt}<stuff here>
# cleartext passwords, especially for the rootdn, should
# be avoid.  See slapd.conf(5) for details.
sizelimit       100000
timelimit       500
lastmod         on
index           uid,ou,cn,sn,givenname
include         /usr/local/etc/openldap/slapd.aci.conf

If I do a search "=" such as:

ldapsearch -b "o=uwm.edu" sn=smith

I get no answers but there are two smith's in the test database.


If I do a search "!=" such as:

ldapsearch -b "o=uwm.edu" (!(sn=smith))

I get all entries except the 'smith' entries.


If I remove the 'index' line from the slapd.conf file and restart the
slapd server, the search for "sn=smith" works correctly.


When I turn on some logging I find that two answers are returned to the 
"sn=smith" but they are not the smith entries but are the entries in the
test ldif file that are just before each of the smith entries. ?


Comment 1 Kurt Zeilenga 1999-04-04 18:27:46 UTC
changed notes
changed state Open to Closed
Comment 2 OpenLDAP project 2014-08-01 21:06:07 UTC
Per user's followup (its#120), problem due to bad input.