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

ldap_bind: Invalid credentials



I can't get started with openLDAP (under Linux SuSE 6.2).

I have:

/etc/openldap/slapd.conf:
-----------------------------------
include  /etc/openldap/slapd.at.conf
include  /etc/openldap/slapd.oc.conf
schemacheck off
pidfile  /var/slapd.pid
argsfile /var/slapd.args
database ldbm
suffix  "o=krl c=dk"
directory /var/ldap
rootdn  "cn=root, dc=krl, dc=dk"
rootdn  "cn=root, o=krl, c=dk"
rootpw  rootpassword

Then I start slapd with:
------------------------------
/usr/libexec/openldap/slapd -f /etc/openldap/slapd.conf

Then I try to add an initial entry:

The myldif.ldif file:
-------------------------
dn: dc=krl, dc=dk
dc: krl
o: krl
objectclass: organization
objectclass: dcObject

dn: cn=root, dc=krl, dc=dk
cn: root
sn: root
objectclass: person

When I run the command:
-----------------------------------
/usr/bin/ldapadd -D "cn=root, dc=krl, dc=dk" -w rootpassword <
myldif.ldif

I get the error:
-------------------
ldap_bind: Invalid credentials


I have looked in the faq for hours and tried different combinations,
and now I just get more and more confused. Can anybody help me?




greetings...
Morten Christensen
>From Denmark, explaining the bad language