[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldapadd help!
Octavio,
You should examine the required fields for the object classes you are
using. Your error message indicates that by specifying "dn: dc=prism,dc=fr
" as objectclass "dcObject", you must specify the attribute "dc:" in your
ldif definition. Therefore, add the following to your entry for "dn:
dc=prism,dc=fr" ......"dc: prism". That should take care of it. For a
description of object classes and their required attributes check out
http://ldap.akbkhome.com. Hope that helps
Jason McGlamary
Associate Application Specialist
Division of Nursing - Nursing Informatics
Washington Hospital Center
Octavio Ramirez Rojas
<Octavio.Ramirez%prism.uvsq.fr@internet.mhg To: LDAP Server List
.edu> <openldap-software%OpenLDAP.org@internet.mhg.edu>
Sent by: cc:
owner-openldap-software%OpenLDAP.org@intern Subject: ldapadd help!
et.mhg.edu
07/30/2003 10:56 AM
Hi,
I working with linux mandrake 9.0
I Installing OpenLdap 2.0.21
slapd.conf contains:
--
database bdb
suffix "dc=prism,dc=fr"
rootdn "cn=Manager,dc=prism,dc=fr"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /usr/local/var/openldap-data
--
I created the "example.ldif" file that contains:
---
dn: dc=prism,dc=fr
objectclass: dcObject
objectclass: organization
o: Prism Laboratoire
dn: cn=Manager,dc=prism,dc=fr
objectclass: organizationalRole
cn: Manager
---
After:
---
[root@azteca openldap]# ldapadd -x -D "cn=Manager,dc=prism,dc=fr" -W -f
example.ldif
Enter LDAP Password:
adding new entry "dc=prism,dc=fr"
ldapadd: update failed: dc=prism,dc=fr
ldap_add: Naming violation (64)
additional info: naming attribute 'dc' is not present in entry
[root@azteca openldap]#
---
HOW CAN I ADD THE USER:"Octavio" WITH A PASSWORD "octaviosecret" ????
Regards
Octavio RAMIREZ