How to reset Ldapadmin password
Create slapd password
[root@COGNOS ~]# slappasswd -h {SSHA}
New password:
Re-enter new password:
{SSHA}eRasqUMIyFCZQa4FIwoqN8a16aU8l/RR
Create Ldap DB Like this
[root@COGNOS ~]# cat /root/db.ldif
dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcSuffix
olcSuffix: dc=dephub,dc=go,dc=id
dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcRootDN
olcRootDN: cn=ldapadm,dc=dephub,dc=go,dc=id
dn: olcDatabase={2}hdb,cn=config
changetype: modify
replace: olcRootPW
olcRootPW: {SSHA}TC7YpXa/BjuELlINnRxmA7Pi19yP7AIb
[root@COGNOS ~]# | 1.0 MB 00:00:00
Modify ldap password with following command
[root@COGNOS ~]# ldapmodify -Y EXTERNAL -H ldapi:/// -f db.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
modifying entry "olcDatabase={2}hdb,cn=config"
modifying entry "olcDatabase={2}hdb,cn=config"
modifying entry "olcDatabase={2}hdb,cn=config"
[root@COGNOS ~]# | 1.0 MB 00:00:00