Modify LDAP record entry


You want to modify or change a record in LDAP.

Supplanting one value with another.



Use ldapmodify from the command line.

Again take a backup with -L – just to be sure. ๐Ÿ™‚



Here is an example of modifying a record in LDAP, when you need to modify an entry to an existing record:

ldapmodify -x -v-Dโ€cn=Manager,dc=demo,dc=netโ€-w secret<<EOT
dn: cn=jdoe,dc=demo,dc=net
changetype: modify
replace: mail
mail: [email protected]



[tags]ldapmodify, modify ldap record, LDAP Training School[/tags]


If you have found my website useful, please consider buying me a coffee below ๐Ÿ˜‰

Leave a Reply

Your email address will not be published. Required fields are marked *