[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: searching for >=



It depends what version of OpenLDAP you are using. Version 2.0.x doesn't
implement everything needed for searching with integers. Look for this
very discussion in the archives (Nov or Dec?).
In short, version 2.1 works great.

> According to the RFC and the man pages one should be able to search for
> a range of numbers using the ">=" and "<=" operators.  In my case, I
> need to know the uidNumbers that are greater than 20000.  So I phrase
> my search as:
>
> ldapsearch -x "(&(uidNumber>=20000)(objectclass=*))" uid uidNumber
>
> This query returns no entries even though I know that I have at least
> 600 uidNumbers above 20000.  I've tried as many variations on this
> pattern as I can think of and still no entries found.
>
> Anyone know what I'm doing wrong with this search string?
>
> Thanks,
>
> Mike