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

ldapadd - no such object/Invalid Credentials



Hi,

When i gave the foll. command,
ldapadd -D "cn=Manager, dc=cnpl, dc=com" < entries.ldif
I got "no such object" error

When i tried the foll. command with password as "secret"
ldapadd -D "cn=Manager, dc=cnpl, dc=com" -w secret < entries.ldif
I got "Invalid Credentials" error

When i tried the foll. command without giving any password,
ldapadd -D "cn=Manager, dc=cnpl, dc=com" -w < entries.ldif
I got "no such object" error.

What could be the possible reasons.

Given below are my ldap.conf, slapd.conf and entries.ldif files

thnks
sameer

ldap.conf
---------
#
# LDAP Defaults
#
# See ldap.conf(5) for details
# This file should be world readable.
#BASE	dc=OpenLDAP, dc=Org
#HOST	ldap.openldap.org

host 127.0.0.1
base  dc=cnpl, dc=com

#HOST	ldap.openldap.org ldap-master.openldap.org:666
#PORT	389
#SIZELIMIT	12
#TIMELIMIT	15
#DEREF		never


slapd.conf
----------
include		/usr/local/etc/openldap/slapd.at.conf
include		/usr/local/etc/openldap/slapd.oc.conf
schemacheck	off
pidfile		/usr/local/var/slapd.pid
argsfile	usr/local/var/slapd.args
#######################################################################
# ldbm database definitions
#######################################################################
database	ldbm
suffix	"dc=cnpl, dc=com"
directory	/usr/local/var/openldap-ldbm
rootdn	"cn=Manager, dc=cnpl, dc=com"
rootpw	secret


entries.ldif
------------
dn: dc=cnpl, dc=com
dc: cnpl
o: Cybertech
objectclass: organization
objectclass: dcObject
dn: cn=Manager, dc=cnpl, dc=com
cn: Manager
sn: Manager
objectclass: person


Cybertech Networks Pvt. Ltd.
We Make Internet Work For You !!