Username according to ASP.NET Windows auth doesn't match logon name in Active Directory -


To match the new company's policy for logon names, my colleague today changed its user logon name into Active Directory Have given.

On your machine, the% username% environment variable now displays the new logon name.

Our intranet, which uses Windows authentication (NTLM), is still reporting its old username (via the page. User Identity.Name).

I know that ASP.NET can cache user credentials, but we have closed down and then restarted the app pool but still this is a symptom.

Anybody advise what's going on?

This is due to caching on a web server. WindowsPrincipal has been taken from the cache, the only way to clean the cache is to reboot the web server machine. There are some code changes that you can apply (to use the Windows API), but I would recommend only a quick reboot.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -