[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Error no structural object class provided
Hi,
i am using openldap2 ( 2.2.6 ) in a suse linux professional 9.1.
My slapd.conf configuration is this:
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/rfc2307bis.schema
include /etc/openldap/schema/yast2userconfig.schema
include /etc/openldap/schema/phpgwaccount.schema
include /etc/openldap/schema/phpgwcontact.schema
pidfile /var/run/slapd/run/slapd.pid
argsfile /var/run/slapd/run/slapd.args
modulepath /usr/lib/openldap/modules
database bdb
checkpoint 1024 5
cachesize 10000
suffix "dc=test,dc=it"
rootdn "cn=root,dc=test,dc=it"
rootpw ******
directory /var/lib/ldap
index default eq
index objectClass,uid,uidNumber,gidNumber eq
index phpgwContactOwner pres,eq,sub
access to attr=userPassword
by self write
by anonymous auth
by dn.base="cn=root,dc=test,dc=it" write
by * none
access to *
by self write
by dn.base="cn=root,dc=test,dc=it" write
by * read
I had set my ldap with the command "ldapadd -x -D "cn=root,dc=test,dc=it" -W -f set.ldif" . The set.dif file is :
dn: dc=test,dc=it
objectClass: top
objectClass: dcObject
objectClass: organization
dc: test
o: Dominio
description: Dominio di Test
dn: cn=root,dc=test,dc=it
objectClass: organizationalRole
cn : root
description: Manager del Dominio
Then i created my ou with the command "ldapadd -x -D "cn=root,dc=test,dc=it" -W -f OU.ldif". The OU.ldif is:
dn: ou=accounts,dc=test,dc=it
objectClass: top
objectClass: organizationalUnit
ou: accounts
dn: ou=groups,dc=test,dc=it
objectClass: top
objectClass: organizationalUnit
ou: groups
But when i try to create two groups in the groups ou with the command "ldapadd -x -D "cn=root,dc=test,dc=it" -W -f Default-Admins.ldif" i have the following error :
adding new entry "cn=Default,ou=groups,dc=test,dc=it"
ldapadd: update failed: cn=Default,ou=groups,dc=test,dc=it
ldap_add: Object class violation (65)
additional info: no structural object class provided
The Default-Admins.ldif is :
dn: cn=Default,ou=groups,dc=test,dc=it
objectClass: top
objectClass: posixGroup
cn: Default
gidNumber: 501
dn: cn=Admins,ou=groups,dc=test,dc=it
objectClass: top
objectClass: posixGroup
cn: Admins
gidNumber: 502
For you where is the error ?
Thanks for your help.
Cristian Del Carlo