[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: schema errors with slapcat with custom schema?
- To: Quanah Gibson-Mount <quanah@symas.com>
- Subject: Re: schema errors with slapcat with custom schema?
- From: Christopher Wood <christopher_wood@pobox.com>
- Date: Wed, 22 May 2019 13:08:37 -0400
- Cc: openldap-technical@openldap.org
- Content-disposition: inline
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:message-id:references:mime-version:content-type :in-reply-to; s=sasl; bh=qT/gZu8ZYGA2LONSf6saiaYPalE=; b=joNVaPF HOSW/AhveWtDneuYjfJ61I/hFh7z/OUDTiranp5BJsz71uiAiWrI4Fp/jX3gXd9n WJa0TDNkMyAw8psUJyeNvm7SBuArEtd32nIaVvpSrN9Ozh7a9PNz3LvMOyIlsWvj b6MCcbLo3egzEhkgUX2nEpoaQKqaGAkrIkv0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to:cc :subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=sasl; b=XoGmSkwlVO+79KC/grM5tc5MmOIBuKfuV uJRyA/c7uyEg1UeGTPPcU017v3vbXja1UDK37YmuS1sF71CMqTzY/speY6NGoEvQ WktaFh2zlxLimz27+GJaWSd4Ub7XORUEnRfgzHUCjONXeO0zvpIf25xB0U/gzyQg Ajd5QaNazQ=
- In-reply-to: <136D2A716BC13EAD412DCB0B@[192.168.1.39]>
- References: <20190522155141.3foaltcvrulq26df@iniquitous.heresiarch.ca> <136D2A716BC13EAD412DCB0B@[192.168.1.39]>
- User-agent: NeoMutt/20170113 (1.7.2)
Thank you, adding attributes directly to cn=schema,cn=config was my problem! No more schema issues now.
For posterity, and in case I managed to klutz something else, ahem:
----------
dn: cn=postfix,cn=schema,cn=config
changetype: add
cn: postfix
objectClass: olcSchemaConfig
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} )
olcObjectClasses: ( 1.3.6.1.4.1.4203.666.1.100 NAME 'postfixUser' DESC 'Postfix mail user class' SUP top AUXILIARY MAY ( mailacceptinggeneralid $ maildrop ))
----------
That did three things for me:
a) schema errors on slapcat/slapschema stopped
b) postfix attributes no longer available from cn=schema,cn=config via ldapsearch
c) fixed other slapd after replication
I had a look under the hood and the attributes still exist in cn=schema,cn=config. Removing a specific attribute is being a bit recalcitrant ("olcObjectClasses: no such value"), I will figure that out later. The attributes under cn=schema,cn=config are at least defanged.
Very much appreciate it!