[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap_add: Object class violation
hi all,
I try to add a entry using ldapadd ,but it give the
following
error.
ldap_add: Object class violation
additional info: attribute not allowed
Where am i going wrong?
could help pls.
$ ldapadd -x -D "cn=Manager,dc=ubm,dc=com,dc=edu" -W
-f exa
mple.ldif
Enter LDAP Password:
adding new entry "cn=User,dc=ubm,dc=com,dc=edu"
ldap_add: Object class violation
additional info: attribute not allowed
ldif_record() = 65
$
My example.ldif looks this way:-
dn: cn=User,dc=ubm,dc=com,dc=edu
objectclass: organizationalRole
cn: User
mail: User@ubm.com.edu
My slapd.conf looks this way:-
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v
1.8.8.4 2000/08/26 17:06:18 kur
t Exp $
#
# See slapd.conf(5) for details on configuration
options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include
/etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include
/etc/openldap/schema/redhat/rfc822-MailMember.schema
include
/etc/openldap/schema/redhat/autofs.schema
include
/etc/openldap/schema/redhat/kerberosobject.schema
# Define global ACLs to disable default read access.
# Do not enable referrals until AFTER you have a
working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org
access to * by * read
#pidfile /var/run/slapd.pid
#argsfile /var/run/slapd.args
# Load dynamic backend modules:
# modulepath /usr/sbin/openldap
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la
# To allow TLS-enabled connections, create
/usr/share/ssl/certs/slapd.pem
# and uncomment the following lines.
# TLSCertificateFile /usr/share/ssl/certs/slapd.pem
# TLSCertificateKeyFile /usr/share/ssl/certs/slapd.pem
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "dc=ubm,dc=com,dc=edu"
rootdn "cn=Manager, dc=ubm,dc=com,dc=edu"
# Cleartext passwords, especially for the rootdn,
should
# be avoided. See slappasswd(8) and slapd.conf(5) for
details.
# Use of strong authentication encouraged.
rootpw secret
# rootpw {crypt}ijFYNcSNctBYg
# The database directory MUST exist prior to running
slapd AND
# should only be accessable by the slapd/tools. Mode
700 recommended.
directory /var/lib/ldap
# Indices to maintain
#index objectClass eq
index cn,sn,uid pres,eq
index objectClass eq
# ldbm access control definitions
access to * by * read
thanxs
Lin s
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/