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

Re: What indexes are allowed ? [auf Viren überprüft]



> Michael Ströder schrieb:
>>>Is there any information what attribute/indexes are supported?
>> Look at the attribute type definition in subschema. You will see for
>> which attributes SUBSTR matching rules are defined.
> #ldapsearch -x -b cn=subschema +
> [...]
> attributeTypes: ( 0.9.2342.19200300.100.1.39 NAME 'homePostalAddress'
> DESC 'RFC1274: home postal address' EQUALITY caseIgnoreListMatch SUBSTR
> caseIgnoreListSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 )
>
> This is the same as in cosine.schema:
>
> attributetype ( 0.9.2342.19200300.100.1.39 NAME 'homePostalAddress'
>          DESC 'RFC1274: home postal address'
>          EQUALITY caseIgnoreListMatch
>          SUBSTR caseIgnoreListSubstringsMatch
>          SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 )
>
> So this seems to explain nothing.

The matching rules exist, and "homePostalAddress" has them noted as
EQUALITY and SUBSTR matching rules.  However, they're not implemented.  If
you look at servers/slapd/schema_init.c, you'll notice that (this is
re2.3, but the same occurs in HEAD):

        {"( 2.5.13.11 NAME 'caseIgnoreListMatch' "
                "SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 )",
                SLAP_MR_EQUALITY | SLAP_MR_EXT, NULL,
                NULL, NULL, NULL, NULL, NULL, NULL },

        {"( 2.5.13.12 NAME 'caseIgnoreListSubstringsMatch' "
                "SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )",
                SLAP_MR_SUBSTR, NULL,
                NULL, NULL, NULL, NULL, NULL,
                "caseIgnoreListMatch" },

i.e. there's no match function associated to the matching rules; as such,
matching on those values is not implemented.

Concerning the reason, I believe it's because there's never been any real
push to implement them.  Feel free to contribute a patch (thru the ITS
<http://www.openldap.org/its/> and conforming to the contribution
guidelines <http://www.openldap.org/devel/contributing.html>).

p.





Ing. Pierangelo Masarati
Responsabile Open Solution
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it
------------------------------------------