[problem]
You want to modify an LDAP record.
For example change telephone number, address, etc.
[/problem]
[solution]
Use ldapmodify from command line. I might seem daunting to start with, but it is the best way.
Plus you should perform a search with -L option, to take a backup to file.
[/solution]
[example]
Here is an example of modifying a record in LDAP, when you need to add 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
add: mail
mail: mail: [email protected]
EOT
Here we are adding the mail field and value.
[/example]
[reference]
[tags]ldapmodify, adding field to ldap record, LDAP Training School[/tags]
[/reference]