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

RE: ldapadd help!



	Should the following be the first entry ?

	dn: dc=prism,dc=fr
	objectclass: dcObject
	objectclass: organization
	o: Prism Laboratoire

	Indeed the attribute dc is missing, you use it in the DC, but you do
not use it as attribute, 
	you should write instead:

	dn: dc=prism,dc=fr
	objectclass: dcObject
	objectclass: organization
	o: Prism Laboratoire
	dc: prism


	cheers
	reinhard

> -----Original Message-----
> From:	Octavio Ramirez Rojas [SMTP:Octavio.Ramirez@prism.uvsq.fr]
> Sent:	mercoledì 30 luglio 2003 16:57
> To:	LDAP Server List
> Subject:	ldapadd help!
> 
> 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
>