Change the uidnumber, gidnumber an sambaprimarygroupid in ucs LDAP

I have to change the uidnumber , the gidnumber and the sambaprimraygroupsid for the user.
The new server have to bind to network drives with “old data” from this persons. To preserve the rights like ACL, I want to give the user the "old"IDs.
In the UCS LDAP Databse it is possible to change the IDs mith ldapmodify.
Normaly this changes have to sync to S4 Database, I thought. But nothing happens.
It is possible to change the mapping? Can I change the IDs directly in the samba Database sam.ldb?