[problem]
You want to modify or change a record in LDAP.
Supplanting one value with another.
[/problem]
[solution]
Use ldapmodify from the command line.
Again take a backup with -L – just to be sure. ๐
[/solution]
[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
[/example]
[reference]
[tags]ldapmodify, modify ldap record, LDAP Training School[/tags]
[/reference]
If you have found my website useful, please consider buying me a coffee below ๐