Problem:
A user is always getting a temporary profile in Windows
Environment
The user hat been deleted earlier as he left for a sabbatical. When returning the user account has been re-created. When logging in the login succeeds but the user always only gets a temporary profile.
Solution
Very likely the windows SIDs have been changed so the permissions on the profile folder do not match. Therefore Windos can not load the profil,
Move the users’s profile and after first successful logging copy the needed files manually to the freshly generate user profile dir:
root@ucs:~ # mv /home/johndoe /home/johndoe.old