How to match attributes whose type is boolean in search filters?  I've
attempted finding the answer using Google, and also glanced through
relevant RFC (that defines syntax for search filters), but haven't found
any specific answer.

I've attempted (using OpenLDAP's ldapsearch command line utility):

(myAttr=TRUE) - doesn't work
(myAttr=true) - doesn't work
(myAttr=1)    - doesn't work
(myAttr)      - gives error (invalid filter)

I'm always getting an empty list.

If I execute ldapsearch without the filter, I get all entries and I can
see the value of myAttr being printed as TRUE (don't see it at all when it
is not TRUE).

Should I simply check for existance (like in "(myAttr=*)") then?  Is this
a correct (standard) way to check the value of boolean attribute
(something that will work with any LDAP server)?

---
You are currently subscribed to [email protected] as: [EMAIL PROTECTED]
To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the 
SUBJECT of the message.

Reply via email to