Great it worked! Thanks alot Adam!
sudo ldapadd -x -W -c -D "cn=admin,cn=config" -f hostobject.ldif
regards, Shamika
On Thu, Apr 15, 2010 at 4:09 PM, Adam Tauno Williams < awilliam@opengroupware.us> wrote:
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.