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

Re: schema errors with slapcat with custom schema?



--On Wednesday, May 22, 2019 12:51 PM -0400 Christopher Wood <christopher_wood@pobox.com> wrote:


Adding the custom schema went fine apart from the replication issue:

----------
dn: cn=schema,cn=config
changetype: modify
add: olcAttributeTypes
olcAttributeTypes: ( 1.3.6.1.4.1.4203.666.1.200 NAME
'mailacceptinggeneralid' DESC 'Postfix mail local address alias
attribute' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} ) olcAttributeTypes: (
1.3.6.1.4.1.4203.666.1.201 NAME 'maildrop' DESC 'Postfix mail final
destination attribute' EQUALITY caseIgnoreMatch SUBSTR
caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} ) -
add: olcObjectClasses
olcObjectClasses: ( 1.3.6.1.4.1.4203.666.1.100 NAME 'postfixUser' DESC
'Postfix mail user class' SUP top AUXILIARY MAY ( mailacceptinggeneralid
$ maildrop ))

You did this wrong. You shouldn't be appending it to cn=schema, which is internal. You need to add it as its own schema object. I suggest looking at other schema objects such as inetOrgPerson, etc.

--Quanah



--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>