[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Adding Objectclass account gives object class violation
On Thu, 2010-04-15 at 14:17 +0530, Shamika Joshi wrote:
> I tried adding my own auxiliary objectclass as below but I get this
> error, I'm definately not doing it right. apologies for the lack of
> schema knowledge, could you please correct me?
> sudo ldapmodify -x -D cn=admin,cn=config -W -f hostobject.ldif
> Enter LDAP Password:
> modifying entry "olcDatabase={0}config,cn=config"
> ldap_modify: Object class violation (65)
> additional info: attribute 'olcObjectClasses' not allowed
> hostobject.ldif:
> dn: olcDatabase={0}config,cn=config
> changetype: modify
> add: olcObjectClasses
> olcObjectClasses: ( 1.3.6.1.4.1.6921.1.24 NAME 'hostobj'DESC 'Combine
> Samba and account' SUP top MUST $ account AUXILIARY )
I think you want to create an object that looks more like
dn: cn=mySchemaName,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: mySchemaName
olcObjectClasses: ( YOUR-OWN-BLOODY-OID NAME 'hostobj' DESC 'Combine
Samba and account' SUP top MUST $ account AUXILIARY )
And just ldapadd that.