OpenLDAP - ldapmodify command
by
Jeremy Canfield |
Updated: October 02 2023
| 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: modify
replace: oldSuffix
olcSuffix: dc=example,dc=com
Run the following command.
ldapmodify -Y EXTERNAL -H ldapi:/// -f example.ldif
Did you find this article helpful?
If so, consider buying me a coffee over at