Richard Lowden created DIRSERVER-1727:
-----------------------------------------
Summary: LDAP Searches against boolean attributes with
booleanMatch equality never return matches
Key: DIRSERVER-1727
URL: https://issues.apache.org/jira/browse/DIRSERVER-1727
Project: Directory ApacheDS
Issue Type: Bug
Affects Versions: 2.0.0-M6
Reporter: Richard Lowden
If you carry out a search trying to match on a boolean attribute (syntax:
1.3.6.1.4.1.1466.115.121.1.7) and an equality matching rule of booleanMatch
then searching for classes with the attribute value equalling TRUE or FALSE
never return results.
Changing the equality matching rule on the attribute to caseIgnoreMatch will
return results.
Used to work in 1.5.7 but no longer works in 2.0.0-M6.
To recreate try searching ober the ou=config entry for "ads-enabled = TRUE" as
per the example below from the search logs, which should return
"ads-directoryServiceId=default,ou=config" but returns no results.
#!SEARCH REQUEST (667) OK
#!CONNECTION ldap://localhost:10389
#!DATE 2012-05-16T16:34:51.265
# LDAP URL :
ldap://localhost:10389/ou=config?objectClass?sub?(ads-enabled=TRUE)
# command line : ldapsearch -H ldap://localhost:10389 -x -D
"uid=admin,ou=system" -W -b "ou=config" -s sub -a always -z 1000
"(ads-enabled=TRUE)" "objectClass"
# baseObject : ou=config
# scope : wholeSubtree (2)
# derefAliases : derefAlways (3)
# sizeLimit : 1000
# timeLimit : 0
# typesOnly : False
# filter : (ads-enabled=TRUE)
# attributes : objectClass
#!SEARCH RESULT DONE (667) OK
#!CONNECTION ldap://localhost:10389
#!DATE 2012-05-16T16:34:51.265
# numEntries : 0
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira