[Date Prev][Date Next]
Re: Using logical operators in LDAP queries.....
Dave Horsfall wrote:
On Fri, 8 Aug 2008, ashish mahamuni wrote:
I've my own objectClass called 'Agency'.
It has fields called 'radius' and 'agencyName'.
I want to find out all 'agencyNames' such that 'radius' is less than 400.
How can I achieve this?
You need to ensure that "radius" can compare appropriately,
Dave, it's worth to mention what "compare appropriately" really means.
IMHO the original poster is looking for using a filter like (radius<=400).
For this to work attribute type 'radius' has to be of syntax Integer
(LDAP syntax with OID 22.214.171.124.4.1.14126.96.36.199.27) and defined with
ORDERING matching rule integerOrderingMatch (OID 188.8.131.52).
Then one could query with
ldapsearch [..command-line options with host, base-DN, scope etc..]