Modify LDAP record entry

Problem

You want to modify or change a record in LDAP.

Supplanting one value with another.



Solution

Use ldapmodify from the command line.

Again take a backup with -L – just to be sure. 🙂



Example


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]
EOT



Reference

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



Leave a Reply

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