Grr LDAP syntax is fussy.

Equality filter:

attribute=value

So what do you think the Inequality filter would be? attribute!=value? attribute!value? No, and no. We use brackets. No problem right? Right…

attribute!(value)
attribute(!value)
!attribute=value
!(attribute=value)

All nope.

You have to do it using BIMDAS, and then put the whole thing in brackets. Oh and the brackets will cause the equality filter to fail.

CORRECT: (!(attribute=value))
INCORRECT: (attribute=value)

Sigh….

Written on July 16th, 2005 , Informative

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

SirSpanky.com – The Secret Diary of James Pearce Aged 20-Something is proudly powered by WordPress and the Theme Adventure by Eric Schwarz
Entries (RSS) and Comments (RSS).

SirSpanky.com – The Secret Diary of James Pearce Aged 20-Something

Personal jorunal of a professional geek – James Pearce in Perth, Australia