[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldapadd is failing - error: Naming violation additional info: value of naming attribute 'ou'is not present in entry
Hi all,
1- I've downloaded and installed Openldap
2.1.25.
2- My "slapd.conf" file has
the following configuration:
---------------------------------------------------------------------------------------
include
/usr/local/etc/openldap/schema/core.schema
include
/usr/local/etc/openldap/schema/cosine.schema
include
/usr/local/etc/openldap/schema/inetorgperson.schema
include
/usr/local/etc/openldap/schema/misc.schema
pidfile
/usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args
database bdb
suffix "o=bax"
rootdn "cn=Manager,o=bax"
rootpw secret
directory /usr/local/var/openldap-data
# Indices to maintain
index objectClass
eq
index cn,mail
pres,sub,eq
--------------------------------------------------------------------------------------
3- Created an ldif file with the following
entries
----------------------------------------
dn: o=bax
o: bax
objectclass: top
objectclass: organization
dn: ou=AMERICA,o=bax
ou: AMERICA
objectclass: organizationalUnit
dn: ou=AFRICA,o=bax
ou: AFRICA
objectclass: organizationalUnit
dn: ou=AGENT,o=bax
ou: AGENT
objectclass: organizationalUnit
dn: ou=EUROPE,o=bax
ou: EUROPE
objectclass: organizationalUnit
dn: ou=IT Services,ou=EUROPE,o=bax
ou: EUROPE
objectclass: organizationalUnit
dn: ou=Global Sales,ou=EUROPE,o=bax
ou: EUROPE
objectclass: organizationalUnit
------------------------------------------------
3- Then I used ldapadd to insert the
above entries into my directory. As you see below it fails when it tries
to add the "ou=IT Services" entry as shown below:
--------------------------
ldapadd -x -D "cn=Manager,o=bax"
-w secret -f baxBaseEntries.ldif
adding new entry "o=bax"
adding new entry "ou=AMERICA,o=bax"
adding new entry "ou=AFRICA,o=bax"
adding new entry "ou=AGENT,o=bax"
adding new entry "ou=EUROPE,o=bax"
adding new entry "ou=IT
Services,ou=EUROPE,o=bax"
ldap_add: Naming violation
additional info: value of naming attribute 'ou' is not present
in entry
ldif_record() = 64
-------------------------
What am I doing wrong ? Keep in mind
that I have the same configuration and directory entries configured and
working for the last two years with Openldap version 2.0.23!!
Regards
Raed Nashef
Consultant Analyst
Network Planning Group
BAX Global, Inc.
440 Exchange
Irvine, CA 92602
Main phone #: 714.442.4500
My Direct phone #: 714.442.7451
Fax: 714.442.2840
Email: rnashef@baxglobal.com
http://www.baxglobal.com