OpenLDAP - ldapadd command

by
Jeremy Canfield |
Updated: March 11 2020
| OpenLDAP articles
Let's say you want to update your domain name in OpenLDAP to be example.com. Create an LDIF file, such as example.ldif, and add the following to the LDIF file.
dn: olcDatabse{2}hdb,cn=config
changetype: add
replace: oldRootPW
olcRootPW: {SSHA}df934jFHB82hfV737rDF19sdfV#$ds
Run the following command.
ldapadd -Y EXTERNAL -H ldapi:/// -f example.ldif
Did you find this article helpful?
If so, consider buying me a coffee over at