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

Re: Migration from 2.0.x -> 2.2.x, schema change





--On Thursday, September 15, 2005 5:40 PM +0200 Ralf Hildebrandt <Ralf.Hildebrandt@charite.de> wrote:

I'm trying to migrate from OpenLDAP 2.0.23 to 2.2.26 on Debian
(oldstable to stable).

Using the max.schema below gives me:
/etc/ldap/schema/max.schema: line 11: AttributeType inappropriate
matching rule: "caseExactMatch"

--- snip ---
# MAX Schema

attributetype ( 1.3.6.1.4.1.192.6.1.3.2.3 NAME 'maxUserDomain'
      EQUALITY caseIgnoreMatch
      SUBSTR caseIgnoreSubstringsMatch
      SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )
		
attributetype  ( 1.3.6.1.4.1.192.6.1.3.2.4 NAME 'maxMailboxServer'
      EQUALITY caseExactMatch
      SUBSTR caseExactIA5Match
      SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' )

I see two problems here:

1) You are using caseExactMatch on an IA5 string
2) You are using an "exact match" rule for substring searches

It should be:

attributetype  ( 1.3.6.1.4.1.192.6.1.3.2.4 NAME 'maxMailboxServer'
      EQUALITY caseExactIA5Match
      SUBSTR caseExactIA5SubstringsMatch
      SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' )


--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin