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

(ITS#7307) Inconsistent "!" evaluation

Full_Name: Quanah Gibson-Mount
Version: 2.4.31
OS: Linux 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

Handling "!" with objectClasses appears to be broken.  For example, if I perform
the following ldap query:

zimbra@zre-ldap002:~$ ldapsearch -LLL -x -H ldapi:/// -D cn=config -w zimbra -b
"" '(!(objectclass=junk))'

This result appears incorrect to me.  I would expect it to return all entries
without that objectClass (which in this case, would be every entry).

Doing the same sort of search on a different attribute, the behavior is as

ldapsearch -LLL -x -H ldapi:/// -D cn=config -w zimbra -b "" '(!(mail=junk))'


# search result
search: 2
result: 0 Success

# numResponses: 82
# numEntries: 81