[ACCEPTED]-Strict less than operator in LDAP search filter?-ldap
Accepted answer
Another simple workaround would to to invert 2 the condition. If you need
(attribute < threshold)
Then this could 1 also be written as
!(attribute >= threshold)
Consult RFC4511 for definitions of the types of 6 search filters. The types of filters are:
- equalityMatch AttributeValueAssertion,
- substrings SubstringFilter
- greaterOrEqual AttributeValueAssertion
- lessOrEqual AttributeValueAssertion
- present AttributeDescription
- approxMatch AttributeValueAssertion
- extensibleMatch MatchingRuleAssertion
Not 5 only is there no '<' filter, the relative 4 values in >=
and <=
are defined by ordering 3 rules, and so making a relative value comparison 2 may not be what is expected unless treshold
has 1 1.3.6.1.4.1.1466.115.121.1.27
syntax and has the integerOrderingMatch
ordering rule.
Not sure to really understand. If you want 1 somthing like X<100
why don't you code X<=99
.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.