Good news: I found a way to change the zimbraID without using the zmprov utility (which would continue to give me the immutable field error).
The
Ajcody-LDAP-Topics helped a lot!
If anyone else ever runs into the problem, here's how I did it:
1. Create a new
target@domain.com Account (serving as host for old data)
2. Log current LDAP output for
target@domain.com to /tmp/account_old.txt
Code:
ldapsearch -H "ldap://<mail.domain.tld>:389" -D "uid=zimbra,cn=admins,cn=zimbra" -b "ou=people,dc=domain,dc=com" -x -a never -w <paswword> "mail=target@domain.com" > /tmp/account_old.txt
3. Modify zimbraID using ldapmodify:
Code:
ldapmodify -x -H "ldap://<mail.domain.tld>:389" -D "uid=zimbra,cn=admins,cn=zimbra" -w <password>
dn: uid=target,ou=people,dc=domain,dc=com
changetype: modify
replace: zimbraID
zimbraID: 6aae8f57-f067-4d24-b949-20835271de8d
Hit Ctrl+D
4. Log new LDAP output for
target@domain.com to /tmp/account_new.txt
Code:
ldapsearch -H "ldap://<mail.domain.tld>:389" -D "uid=zimbra,cn=admins,cn=zimbra" -b "ou=people,dc=domain,dc=com" -x -a never -w <paswword> "mail=target@domain.com" > /tmp/account_new.txt
Voilà! Step 2 and 4 are not mandatory, but helped to confirm that the change was succesful.
I presume that the mysql data for the initially created
target@domain.com Account could be be cleaned from the DB, but I haven't had time to look into that yet. Just happy mails and everything else were recovered
Thanks for the help Arcane!