Centrify DirectControl Mac Edition v 5.2.x and aboveProblem:
After a User has their name changed in Active Directory (AD), they are not able to log into their Mac using their new Username.Resolution:
To correct this, an Administrator will need to update the Username locally on the Mac. This will ensure the local UID will match the new Username.
To do this the following steps will need to be preformed:
1. Log into the Mac as the Local Administrator, or an AD account with Administrative rights on the Mac
2. Go to "System Preferences > Users and Groups" and unlock the padlock in the lower left corner, and then right click (2 finger tap) on the User in the User list to expose the "Advanced Options..."
3. The Advanced Section will expose the User ID (UID) and some other details. The Administrator will need to update the Account Name (for Login), and Full Name (Displayed in User list).
4. After this is updated, in terminal, type the following;
"sudo adflush" (without quotes) and enter the Admin password when prompted. You should see the following if completed successfully.
Note: adflush will clear all locally cached credentials
5. Once the flush is complete, log out and then log in as the User using the new Username