Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strict less than operator in LDAP search filter?

Tags:

ldap

In all references on LDAP search filter operator I find <= for "less than or equal to" and >= for "greater than or equal to."

Is there really no "strictly less than" operator? Must I write attribute < threshold as the following? (Threshold is a fixed value.)

(&(attribute <= threshold)(!(attribute = threshold))) 

In my current case the attribute values are integers that represent dates, e.g. 20120217161853 for 2012-02-17 16:18:53.

like image 988
Joni Avatar asked Feb 16 '12 10:02

Joni


1 Answers

Another simple workaround would to to invert the condition. If you need

(attribute < threshold)

Then this could also be written as

!(attribute >= threshold)
like image 191
Jörn Horstmann Avatar answered Sep 25 '22 07:09

Jörn Horstmann