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

invalid credentials.



hi!
 i have a problem when i execute ldapadd and give the password secret as
specified in the slapd.conf file it throws the error invalid
credentials.as shown below:-

[root@cyh23 bin]# ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f
example.ldif
Enter LDAP Password:
ldap_bind: Invalid credentials

And when i don't give the password it shows the following things:-

[root@cyh23 bin]# ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f
example.ldif
Enter LDAP Password:
adding new entry "dc=example,dc=com "
ldap_add: No such object

ldif_record() = 32      


the example.ldif is shown below:-
dn: dc=example,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company
dc: example

dn: cn=Manager,dc=example,dc=com
objectclass: organizationalRole
cn: Manager     
-- 

the slapd.conf is shown below:-
include  /user/local/etc/openldap/schema/core.schema   
pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args
database        ldbm
suffix          "dc=example,dc=com"
rootdn          "cn=Manager,dc=example,dc=com"      
rootpw          secret
directory       /usr/local/var/openldap-ldbm   
index   objectClass    eq     
<

when i first i started the slapd and gave the following command:-
ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
the o/p it gave was as follows:-
dn:
namingContexts: dc=example,dc=com

can anyone tell me where the things are going wrong.
your help will be appreciated.
from,
   ashish.