Hi everyone.
I'm trying to add a attribute of a new schema to an existing entry.
I've created the schema called 'owlco' (I've remove almost fields to concision):
---------------------------------------------------------------------- attributetype ( 1.3.6.1.4.1.4203.666.0.1 NAME 'owlChurchNumber' DESC 'Church Number' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{8} )
attributetype ( 1.3.6.1.4.1.4203.666.0.2 NAME 'owlSupernatural' DESC 'You wouldn't understand' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{8} )
...
objectclass ( 1.3.6.1.4.1.4203.666.1.1 NAME 'owlco' DESC 'Classe utilizada pela Owl Corporation' SUP inetOrgPerson STRUCTURAL MUST ( owlChurchNumber ) MAY ( owlDevotes $ owlSupernatural ) ) ----------------------------------------------------------------------
And I've added the schema:
---------------------------------------------------------------------- include /etc/openldap/schema/owlco.schema ----------------------------------------------------------------------
So, before all that actions I've created my whole directory and now I have all the entries without some mandatory owlco's fields (mandatory not to LDAP but to my business).
So, now I'm trying:
dn: uid=holykid,ou=saints,dc=clouds,dc=heaven,dc=god changetype: modify add: owlChurchNumber owlChurchNumber: 3212
And I've got:
---------------------------------------------------------------------- ldap_modify: Object class violation (65) additional info: attribute 'owlChurchNumber' not allowed ----------------------------------------------------------------------
Ok, absolutely normal. My schema depends on inetorgperson.
So...
---------------------------------------------------------------------- dn: uid=holykid,ou=saints,dc=clouds,dc=heaven,dc=god changetype: modify add: objectclass objectclass: owlco
# ldapmodify: wrong attributeType at line 4, entr ----------------------------------------------------------------------
I didn't stop on that try, I've tried a lot more combinations without success.
I've read the 'http://www.zytrax.com/books/ldap/ch5/', specially the topic 'To add a new AUXILIARY objectclass to an existing entry requires'.
dn: uid=holykid,ou=saints,dc=clouds,dc=heaven,dc=god changetype: modify objectclass: inetorgperson objectclass: owlco
But all I get is:
ldapmodify: modify operation type is missing at line
I'm stuck on that...
Yep, I've tried too:
dn: uid=holykid,ou=saints,dc=clouds,dc=heaven,dc=god changetype: modify add: objectclass objectclass: inetorgperson objectclass: owlco
And:
dn: uid=holykid,ou=saints,dc=clouds,dc=heaven,dc=god changetype: modify add: owlChurchNumber objectclass: inetorgperson objectclass: owlco owlChurchNumber: 2342
But... got nothing...
[]'s Alexander Brazil - Rio de Janeiro
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
alexander@nautae.eti.br writes:
Hi everyone.
I'm trying to add a attribute of a new schema to an existing entry.
I've created the schema called 'owlco' (I've remove almost fields to concision):
[...]
objectclass ( 1.3.6.1.4.1.4203.666.1.1 NAME 'owlco' DESC 'Classe utilizada pela Owl Corporation' SUP inetOrgPerson STRUCTURAL MUST ( owlChurchNumber ) MAY ( owlDevotes $ owlSupernatural ) )
[...]
So, before all that actions I've created my whole directory and now I have all the entries without some mandatory owlco's fields (mandatory not to LDAP but to my business).
So, now I'm trying:
dn: uid=holykid,ou=saints,dc=clouds,dc=heaven,dc=god changetype: modify add: owlChurchNumber owlChurchNumber: 3212
And I've got:
ldap_modify: Object class violation (65) additional info: attribute 'owlChurchNumber' not allowed
[...]
Your owlco objectclass is STRUCTURAL and there is per entry only one structural objectclass allowed which cannot be modified. That is, if your entries have the attribute objectclass: inetorgperson, the value inetorgperson cannot be modified to objectclass: owlco.
-Dieter
openldap-technical@openldap.org