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

Re: ldapadd error



On Wednesday 18 October 2006 12:24, Sailesh D wrote:
> Hi all,
> I installed openldap on windows and successfully started the server. My
> slapd.conf file is :
>
> #
> # See slapd.conf(5) for details on configuration options.
> # This file should NOT be world readable.
> #
> ucdata-path	./ucdata
> include		./schema/core.schema
>
> pidfile		./run/slapd.pid
> argsfile	./run/slapd.args
>
>
> #######################################################################
> # BDB database definitions
> #######################################################################
>
> database	bdb
> suffix		"dc=org"
> rootdn		"cn=admin,dc=org"
> # Cleartext passwords, especially for the rootdn, should
> # be avoid.  See slappasswd(8) and slapd.conf(5) for details.
> # Use of strong authentication encouraged.
> rootpw	{SSHA}XXXXXXXXXXXXXXXXXXXXXXXX
> # The database directory MUST exist prior to running slapd AND
> # should only be accessible by the slapd and slap tools.
> # Mode 700 recommended.
> directory	./data
> # Indices to maintain
> index	objectClass	eq
> #database access control definitions
> access to *
> 	by dn="cn=admin,dc=org" write
> 	by * read
>
>
> Now, I wanted to add the following entry to the file using ldapadd:
>
> dn: cn=sailesh,dc=org
> objectclass:person
> sn:sailesh
> Descriptiom: user
>
> It returned the following error :
>
> request 1 done
> adding entry "cn=sailesh,dc=novell"
> request 2 done
>
> ldap_add : No such object (32)

Well, I'm guessing the LDAP server doesn't know anything about "dc=novell".

So, unless you've massaged half of your example, and not the other, you've got 
some typos, and the ldif above is *not* what you are trying to ldapadd.

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist - Monitoring/Authentication Team Leader
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)

Attachment: pgpIUHudtdsIm.pgp
Description: PGP signature