Solved

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

Posted on 2010-08-23
1
1,276 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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 …

771 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

14 Experts available now in Live!

Get 1:1 Help Now