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

Re: newbie question



Peter Marschall writes:
> On Monday 10 February 2003 21:33, malfet@gw.mipt.sw.ru wrote:
> > Does slapd support Greater-or-Equal and Lesser-or-Equal filters?
> > If so, please send me example of this filter.
> > I tried following search
> >   ldapsearch -x "uidNumber>200"
> > but receives nothing, meanwhile I have a lot of users with uid greater then
> > 200
> 
> IIRC it does so in 2.1.x versions.
> But it can only do what you ask for: >= and <=

You must also define an ORDERING matching rule for the attribute.
That is, you must edit etc/openldap/schema/nis.schema
to say:

attributetype ( ... NAME 'uidNumber'
		EQUALITY ...
		ORDERING integerOrderingMatch
		... )

Or, somewhat cleaner: Define your own attribute type with an ORDERING
matching rule and use that instead of hacking the standard definitions.

-- 
Hallvard