[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Object Class Violation (ITS#558)
Full_Name: Johnny Yeung
Version: 1.2.10
OS: Solaris
URL: ftp://ftp.openldap.org/incoming/johnny-yeung-000605.ext
Submission from: (NULL) (216.34.56.10)
Hi,
I got some problems while using the "ldapadd" command, would you please help?
##########################
# slapd.conf
##########################
include /opt/openLDAP/etc/openldap/slapd.at.conf
include /opt/openLDAP/etc/openldap/slapd.oc.conf
userat /opt/openLDAP/etc/openldap/slapd.user_at.conf
useroc /opt/openLDAP/etc/openldap/slapd.user_oc.conf
schemacheck on
##########################
# slapd.user_oc.conf
##########################
objectclass uoc-ttmail
requires
objectClass
allows
uoc-ttmail-badluck,
uoc-ttmail-ud
objectclass uoc-xself
requires
objectClass,
uid
allows
uoc-xself-registersite,
uoc-xself-registrationdate,
uoc-xself-lastvisit
##########################
# slapd.user_at.conf
##########################
attribute uoc-ttmail-badluck cis
attribute uoc-ttmail-ud cis
attribute uoc-xself-registersite cis
attribute uoc-xself-registrationdate cis
attribute uoc-xself-lastvisit cis
##########################
# testoc.ldif
##########################
dn:uid=jytest05,ou=community,dc=xdc,dc=xcom,o=internet
objectclass:top
objectclass:uidobject
objectclass:person
objectclass:uoc-ttmail
objectclass:uoc-xself
cn:jytest05
uid:jytest05
uoc-ttmail-badluck:0
uoc-ttmail-ud:1
# ./ldapadd -D "cn=Manager, dc=xdc, dc=xcom, o=internet" -W < testoc.ldif
Enter LDAP Password:
adding new entry uid=jytest05,ou=community,dc=xdc,dc=xcom,o=internet
ldap_add: Object class violation
Questions:
1. If I want to create some user defined object classes, can I create some files
to store these object classes and attributes (e.g. slapd.user_oc.conf and
slapd.user_at.conf) or I must add them in the slapd.oc.conf and slapd.at.conf?
2. If answer in Question 1 is "Yes", after I created the user defined object
classes, should I use "useroc" and "userat" or "include" in the slapd.conf to
add these files in the slapd.conf? I tried to use "include" but it fail to
restart the ldap server when I stop and start it.
3. If I turned on the schema checking, it fail to add the entry and returns
"Object class violation".
Please help.
Thanks a lot.
Regards,
Johnny Yeung