Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1052005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:01:24+00:00 2026-05-16T17:01:24+00:00

I’m currently troubleshooting an Intranet application hosted at our company. In this application, Windows

  • 0

I’m currently troubleshooting an Intranet application hosted at our company. In this application, Windows Authentication (Integrated Mode) is used to obtain the IPrincipal object for the current user and the current user’s name (i.e. “DOMAIN\Joe123”). Our domain is 4 characters long, so the individual who put this code together is grabbing just the substring containing the current user’s login name as follows:

 private string GetUserID()
 {

     string userId = "";
     if (User.Identity.Name.ToString().Length > 5)
     {
         userId = User.Identity.Name;
         userId = userId.Substring(5);
     }

     return userId;
 }

The problem we are running into is that we have a user whose login name was recently changed. We have two Domain Controllers running Windows Server 2003 R2 from which we can manage Active Directory credentials. This user has been modified in Active Directory to have a new login name, new e-mail address, new profile location (roaming profiles in use), and new Exchange mailbox / alias (running Exchange 2007). This was done after the given individual married and changed her last name. I can’t find a single place in Active Directory or Exchange Management where the new login name is not reflected.

This user can log in to our domain with her new login name. However, the IPrincipal object accessed via the code above is still reporting the user’s previous login name.

To date, her machine has been restarted, all cookies have been cleared, and the application pool for our Intranet application has been recycled. I’m wondering what other steps might be necessary to update the Name value returned in the IPrincipal object.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:01:25+00:00Added an answer on May 16, 2026 at 5:01 pm

    I believe that lookup is cached on the server.

    MS KB: The LsaLookupSids function may return the old user name instead of the new user name if the user name has changed on a domain controller

    A server reboot may fix this as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.