[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldapadd help!


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


[root@azteca openldap]# ldapadd -x -D "cn=Manager,dc=prism,dc=fr" -W -f
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" ????