I am trying to change the targetaddress for contacts in a certain OU. Here is my syntax:
admodcmd -dn "OU=source users,dc=source,dc=local" -f email@example.com -custom targetaddress "smtp:%'mailNicknamefirstname.lastname@example.org"
The mailNickname variable gets dropped and the new targetaddress is: @domain.local
I can successfully change a contact target address with admodify.net (GUI). However, I need to do this on a recurring basis and wanted to use the command tool.
Any ideas or suggestions?