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

ldap_bind: Invalid credentials

Why have two rootdn's?  I'd decide on which scheme I'm going to use
(dc=x or c=x), configure everything for that and remove the rest from

Of course, I'm an LDAP newbie too, so I could be completely wrong ;-)


-- Raju

>>>>> "Morten" == Morten Christensen <m--c@indbakke.dk> writes:

    Morten> I can't get started with openLDAP (under Linux SuSE 6.2).
    Morten> I have:

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

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

    Morten> Then I try to add an initial entry:

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

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

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

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

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

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