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

Re: Adding new schema file, slaptest says "AttributeType inappropriate matching rule..."

On Mon, 2005-12-12 at 23:26 +0200, Kimmo Koivisto wrote:
> Hello
> I have openldap 2.2.29/Fedora Core 4 and I have tried to add custom schema to 
> it, but I have problem. Probably easy one, but I can't just figure out howto 
> solve this.
> I'm trying to add Mobile IP schema, I have copied schema 
> to /etc/openldap/schema/mip.schema and added the include directive to the 
> slapd.conf. When I run slaptest, I get:
> # slaptest
> /etc/openldap/schema/mip.schema: line 6: AttributeType inappropriate matching 
> rule: "caseIgnoreMatch"
> slaptest: bad configuration file!
> Any ideas, should I get eyeglasses or better keyboard :)
> Regards
> Kimmo Koivisto
> <mip.schema>
> attributetype (
>         NAME 'NAI'
>         DESC 'RFC2486 Network Access Identifier'
>         EQUALITY caseIgnoreMatch
>         SUBSTR caseIgnoreSubstringsMatch
>         SYNTAX{72} ) ::= IA5string
caseIgnoreMatch ::= case ignore match for directoryString

either use "" (directoryString) or
caseIgnoreIA5Match.  Clear enough?  Who wrote that schema (which is not
distributed with OpenLDAP, BTW) likely didn't wear eyeglasses.

I note that SysNet developed tools that automatically cure those issues
when loading schema files (this issue is very frequent, because people
think that, all in all, a string is a string, and case ignore is case
ignore, so there's tons of broken schema out there).  You can contact
<info@sys-net.it> for details.


Ing. Pierangelo Masarati
Responsabile Open Solution

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