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

Re: Greater-equal/Less-than-equal comparisons



"Brent J. Nordquist" <b-nordquist@bethel.edu> writes:

> On Thu, 9 Oct 2003, Dieter Kluenter <dieter@dkluenter.de> wrote:
>
>> sn and uidNumber have no ordering rule but a substring matching rule.
>
> Thanks for the response!  I'm not sure I understand precisely what you
> mean.
>
> Do you mean I could add an ORDERING rule (I didn't realize there was such
> a thing) to the schema and it would start to work?  If so, do I need any
> special kind of index in slapd.conf to support that?
>
> Or do you mean that the types that sn and uidNumber are based on
> (1.3.6.1.4.1.1466.115.121.1.15 and .27, it looks like) cannot do ordering
> in OpenLDAP and I'm out of luck?

No, you cannot add a rule to a standard track schema, but you could
create your own schema. As the syntax of 'sn' is 'directory string',
an ordering rule of 'caseExactOrderingMatch' could be applied.
The syntax of 'uidNumber' is 'integer', an ordering rule of
'numericStringOrderingMatch' could be applied.

But frankly, I'm not shure, wether OpenLDAP supports any
caseOrderingMatch rules.
Further information in rfc 2252, in particular chapter 8.2 Matching
Rules used in Inequality Filters.

-Dieter

-- 
Dieter Kluenter  | Systemberatung
Tel:040.64861967 | Fax: 040.64891521
mailto: dkluenter(at)dkluenter.de
http://www.avci.de