Any help on this would be TRULY appreciated.
I'll spare you the details, but we have to rename all of our Active Directory users from [First name] [Last Name] to [First Initial][Last Name] to get the space out of the usernames.
We have a production web application that uses the following line of code to get the Username from Windows once the user logs in with Windows Authentication:
System.Security.Principal.WindowsIdentity.GetCurrent().Name
After we update a user's account through Active Directory Users and Computers, it takes quite a while before that line of code returns their new username. They cannot login until that is updated.
Does anybody know what I can do on the webs server to get it to go ahead and update? I have tried the following:
1) Trigger replication between all domain controllers in AD Sites & Services 2) Run gpupdate /force from a command line on the production web servers 3) Run iisreset from a command line on the prouduction web servers
Right now I am having to update users one at a time so that everyone else as able to work.
Any answers, ideas, things to try, or a .Net explanation of where that .Name property actually gets its value would be appreciated.