How to reset Ldapadmin password
Create slapd password
[[email protected] ~]# slappasswd -h {SSHA}
New password:
Re-enter new password:
{SSHA}eRasqUMIyFCZQa4FIwoqN8a16aU8l/RR
Create Ldap DB Like this
[[email protected] ~]# 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
[[email protected] ~]# | 1.0 MB 00:00:00
Modify ldap password with following command
[[email protected] ~]# 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"
[[email protected] ~]# | 1.0 MB 00:00:00