Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A user in the Active Directory has had a change of his SAM account name, but a web application running IIS still recognizes him under his old SAM Account name. I presume this is because the AD principals are cached.

The IIS server variables in the request indicates the mismatch:

  • LOGON_USER: Old user name
  • AUTH_USER: New user name

How can the principal be purged from the cache on the server so that it picks up the new SAM account name (preferably without rebooting the server or waiting for the 720 minute cache expiry duration)?

share|improve this question
Was the user's UPN changed along with the sAMAccountName? – jscott Aug 26 '11 at 19:01

see for a possible solution (set LsaLookupCacheMaxSize 0)

also see ( How SIDs and Account Names Can Be Mapped in Windows )

share|improve this answer

You were pointed into the right direction with KB946358. LSA cache is being purged when server restarts or may be disabled entirely (but this will require restart first).
I'm very interested in finding precise reproduction steps for this. See my question about this - still no answer so far, but it contains a solution which doesn't require reboot to fix your renamed user. You have to run following PS script on your sever where you have stale date in LSA cache once after rename:

$objuser = new-object "domain\<new account name>" 

I tried this solution and confirm that it works.
Also you may find the following an interesting read on this subject:

I will appreciate is somebody will be able to explain how I can reproduce this or at least give me some idea how I can recreate the situation when "recurring queries by applications keep the existing cache entry alive for the maximum lifetime of the cache entry." (this is short and laconic explanation of issue's cause from KB946358)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.