Solved

Request.LogonUserIdentity.Name pulling old uid after it was updated in Active Directory

Posted on 2010-08-23
1
1,277 Views
Last Modified: 2012-05-10
I have an asp.net application that pulls the user currently logged onto the machine via :  Request.LogonUserIdentity.Name

This has always worked flawlessly in the past, however my Active Directory admin changed a user id within AD . When My app pulls the  Request.LogonUserIdentity.Name it is still pulling the old name. We have already tried recreating the local profile for the user and windows shows them logged in as the new ID but this code method is still pulling the old id. Can anyone offer some insight?
0
Comment
Question by:jfsedlar3rd
1 Comment
 

Accepted Solution

by:
jfsedlar3rd earned 0 total points
ID: 33506196
Resolved:

To work around this issue, disable the local SID cache on the domain member computer. To do this, follow these steps:

   1. Open Registry Editor.

      To do this in Windows XP or in Windows Server 2003, click Start, click Run, type regedit, and then click OK.

      To do this in Windows Vista, Click Start, type regedit in the Start Search box, and then press ENTER.
   2. Locate and then right-click the following registry subkey:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
   3. Point to New, and then click DWORD Value.
   4. Type LsaLookupCacheMaxSize, and then press ENTER.
   5. Right-click LsaLookupCacheMaxSize, and then click Modify.
   6. In the Value data box, type 0, and then click OK.
   7. Exit Registry Editor.

Note The LsaLookupCacheMaxSize registry entry sets the maximum number of cached mappings that can be saved in the local SID cache. The default maximum number is 128. When the LsaLookupCacheMaxSize registry entry is set to 0, the local SID cache is disabled.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now