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

RE: ldap_bind: Invalid credentials at LDAPADD step in the QuickStart Guide



Quanah

  Thank you for your response!
I think part of the problem is that I don't understand LDAP, and the quick-start has diverged from the content of the installed slapd.ldif and slapd.conf.

I have modified my 'ldapadd' example.ldif file to hold the same 'dc' as what Is in the installed slapd.ldif and slapd.conf:
Contents of example.ldif:
-----------------------------
dn: dc=my-example,dc=com
objectclass: dcObject
objectclass: organization
o: KEN Example Company
dc: ken example

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

The ldapadd still fails:
/usr/local/bin/ldapadd -x -D "cn=Manager,dc=my-example,dc=com" -w secret -f /usr/local/etc/openldap/example.ldif
    ldap_bind: Invalid credentials (49)



Ken




-----Original Message-----
From: Quanah Gibson-Mount <quanah@symas.com> 
Sent: Monday, December 23, 2019 10:00 AM
To: Dunne, Kenneth (SMO NAM RC-US RI PE PE-ENG OF) <kenneth.dunne@siemens.com>; openldap-technical@openldap.org
Subject: Re: ldap_bind: Invalid credentials at LDAPADD step in the QuickStart Guide



--On Monday, December 23, 2019 2:54 PM +0000 "Dunne, Kenneth" 
<kenneth.dunne@siemens.com> wrote:

> /usr/local/bin/ldapadd -x -D "cn=Manager,dc=example,dc=com" -w secret 
> -f /usr/local/etc/openldap/example.ldif

> olcSuffix: dc=my-domain,dc=com
> olcRootDN: cn=Manager,dc=my-domain,dc=com

dc=example,dc=com and dc=my-domain,dc=com clearly don't match.

--Quanah



--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.symas.com&amp;data=02%7C01%7Ckenneth.dunne%40siemens.com%7Cd1980f78ca234429882b08d787c125a6%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C1%7C637127135952925748&amp;sdata=WKkUwbMSfsR5S99ysQZAdtKQCg5dh7xt7MORYXOBfHs%3D&amp;reserved=0>