Ooops, I noticed that the 'dc' field in the new 'example.ldif' is perhaps wrong, modified to the following, but the ldapadd still fails similarly ( ldap_bind: Invalid credentials (49)) Contents of example.ldif: ----------------------------- dn: dc=my-example,dc=com objectclass: dcObject objectclass: organization o: KEN Example Company dc: example
dn: cn=Manager,dc=my-example,dc=com objectclass: organizationalRole cn: Manager -----------------------------
-----Original Message----- From: openldap-technical openldap-technical-bounces@openldap.org On Behalf Of [ext] Dunne, Kenneth Sent: Monday, December 23, 2019 10:50 AM To: Quanah Gibson-Mount quanah@symas.com; openldap-technical@openldap.org Subject: 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&data=02%7C01%7Ckenneth.dunne%40siemens.com%7Cfe5226474ed54b498cb808d787c96964%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C1%7C637127171430943891&sdata=mzPVAMldnyOFkj1A0yv7v%2BYYLb85IEmWWtksbzlzq8w%3D&reserved=0