[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Incosistent config after schema modification
- To: openldap-technical@openldap.org
- Subject: Incosistent config after schema modification
- From: Ervin Hegedüs <airween@gmail.com>
- Date: Wed, 10 Jan 2018 16:17:08 +0100
- Content-disposition: inline
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=q6vGFJHLY9hBboLEi3Ah/GDCneWdYqR1Hy6KX8AMSl0=; b=tZLOVbhknGiYgpbdAYV8sgE8nIrrdvDyj4o6tr94svTsrh9/LgrLr9OC1eP43NlDqg +Co2hifRR3DLWLO5wW5VqfOpD+kNTtezE2iz/mzNGylo+LfrKVRa8v931g+5QoLX7vNz XMlJoWAu+Rj5EGy105tZtkgGqjGH4o1wYL6y9rzCetg3aia1PFgzk/5MqlddNzSKlxbC z+nzAaeZjJ0tBG5GebLrZTsKOAqyDn/KGUk+us5v0tSgSo90OeZT6jxKms1b9lbJf8S0 8VAyW1u58dVBR9ecqo9IrO5m9jFhFUyr9uoBGfGcXye8A3V4H6T8u/b8sqRMdQKm+i9f w5XQ==
- User-agent: Mutt/1.5.24 (2015-08-30)
Hi there,
here are a 3 member multimaster config with OpenLDAP 2.4.44
(Debian 9.3).
We need a custom schema, so I've made that - everithing has
worked as well, but the customer said he needs to modify some
attribute type in the new custom schema.
I've made an ldif:
dn: cn={5}cppm,cn=schema,cn=config
changetype: modify
replace: olcAttributeTypes
olcAttributeTypes: {0}( cppmAttrs:1 NAME 'cppmCreateTime' DESC 'Create time'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{20} SINGLE-VALUE )
olcAttributeTypes: {5}( cppmAttrs:6 NAME 'cppmExpireTime' DESC 'Expire time'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{20} SINGLE-VALUE )
olcAttributeTypes: {7}( cppmAttrs:8 NAME 'cppmActivationTime' DESC 'Activati
on time' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{20} SINGLE-VALUE )
# ldapmodify -Y EXTERNAL -H ldapi:/// -f mod1.ldif
SASL/EXTERNAL authentication started
SASL username:
gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
modifying entry "cn={5}cppm,cn=schema,cn=config"
Then I'ld liked to add this new objectclass to a member of tree,
but I got an error:
"cppmDomainName: attribute type undefined"
but - of corse - I've added this attribute to the original
schema.
So, I'ld like to backup the config database, but the slapcat
said:
# slapcat -b cn=config
5a562aa7 olcObjectClasses: value #0 olcObjectClasses: AttributeType not found: "cppmVisitorCompany"
5a562aa7 config error processing cn={5}cppm,cn=schema,cn=config: olcObjectClasses: AttributeType not found: "cppmVisitorCompany"
slapcat: bad configuration file!
What's happenned? What em'I wrong? And what should I do now?
Thanks,
a.