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

(uid=*) search filter returns no entries (ITS#2522)



Full_Name: Jonathan Eric Miller
Version: 2.1.19
OS: Solaris 8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (128.135.99.79)


If I do a search using a filter of "(uid=*)", no entries are returned. The
following example demonstrates.

# ldapsearch '(uid=*)' dn
# extended LDIF
#
# LDAPv3
# base <> with scope sub
# filter: (uid=*)
# requesting: dn 
#

# search result
search: 2
result: 0 Success

# numResponses: 1

However, if I do a search that includes a character before the "*" such as
"(uid=j*)", it does return entries. The following example demonstrates.

# ldapsearch '(uid=j*)' dn
# extended LDIF
#
# LDAPv3
# base <> with scope sub
# filter: (uid=j*)
# requesting: dn 
#

# jemiller, People, uchicago.edu
dn: uid=jemiller,ou=People,dc=uchicago,dc=edu

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

Note, this problem doesn't occur with OpenLDAP 2.1.11, but, does with OpenLDAP
2.1.19. Note, I reloaded my directory from an LDIF file to make sure the
database files weren't corrupted. Can anyone else reproduce this?