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

Re: Wildcard searches on specific record types



Hello,

Joost De Cock <Joost.DeCock@astrid.be> writes:

> Hello all,
>
> I am running an OpenLDAP installation on a RedHat 9 box (openldap
> 1.8.8.7).

???

> attributetype ( 0.9.2342.19200300.100.1.31 NAME 'cNAMERecord'
>         EQUALITY caseIgnoreIA5Match
>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
>
> Whereas a more 'text-oriented' entry looks like this:
>
> attributetype ( 0.9.2342.19200300.100.1.2 NAME 'textEncodedORAddress'
>         EQUALITY caseIgnoreMatch
>         SUBSTR caseIgnoreSubstringsMatch
>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )
>
> And now my questions:
>
> 1) Am I right in thinking that the LDAP server is unable to do a
> wildcard search on a cname record because cNAMERecord does not have
> the SUBSTR stuff?

Yes, you need substring matching rules to do a search with wildcard
filters 
>
> 2) Let's say that I wanted that functionality anyway, could I just add
> the SUBSTR line in the schema?

No, you should not change schemas.

> 3) Is proposing to change the schema the dumbest thing one could
> propose and did I just make an arse out of myself?
>
> 4) if ( 3) ) Is there another way to do a substring search on such a
> record type?

create your own schema.

-Dieter

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