I am getting error ldap_bind Invalid credentials (49) with openldap. I only installed and configured openldap on centos7. I changed the password couple of time as well. I Know there are many question there on same issue but I tried all of them nothing worked in my case.
As @Piotr suggested i ran:
ldapsearch -H ldapi:/// -Y EXTERNAL -b cn=config '(objectclass=olcDatabaseConfig)' dn olcRootDN olcRootPW
I am getting below output as a result of this command:
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
extended LDIF
LDAPv3
base <cn=config> with scope subtree
filter: (objectclass=olcDatabaseConfig)
requesting: dn=xxx dn=xxx olcrootPW=xxx
{-1}frontend, config
dn: olcDatabase={-1}frontend,cn=config
{0}config, config
dn: olcDatabase={0}config,cn=config
{1}monitor, config
dn: olcDatabase={1}monitor,cn=config
{2}hdb, config
dn: olcDatabase={2}hdb,cn=config
search result
search: 2
result: 0 Success
numResponses: 5
numEntries: 4