WindowsPrincipal is incorrect after AD account rename



Our environment is - we use Visual Studio 2005, Dotnet 2.0, VB to create a
web application which we run on IIS 6.

Our Web.config file has the following set:

<authentication mode="Windows" />
<identity impersonate="true"/>


We are using

MyPrincipal = New WindowsPrincipal(Current.User.Identity)

to obtain the name of the currently logged on user.

This is working until we are forced to rename a user's account in Active
Directory. For example, Mary Smith (domain\marys) gets married and becomes
Mary Jones (domain\maryj). We rename the account in Active Directory Users
and Computers and the rename appears to be fine. However from this point on
when we look at WindowsPrincipal(Current.User.Identity) it returns
domain\marys rather than her new name of domain\maryj.

What are we missing?




.



Relevant Pages

  • Re: rename an account in Exchange 2000
    ... Right click over her account in Active Directory Users and Computers and ... select Rename, that should take care of it. ... She will then have two SMTP addresses her old one and a new one, ... > contacts in her mailbox what is the right procedure to rename her account ...
    (microsoft.public.exchange2000.admin)
  • Dave Goldman help: rename AD user creates prob w autocomplete Outl
    ... When I rename an AD user account and Exchange Mailbox using the steps ... After renaming an Active Directory user account, the new user name and the ... I typed jwalter into Outlook, arrowed down, and deleted the name from the ... I rebuilt the Offline Address Book on the Exchange server and redownloaded ...
    (microsoft.public.exchange.admin)
  • RE: Dave Goldman help: rename AD user creates prob w autocomplete Outl
    ... To rename the account I followed the following steps: ... Then I went to the account properties and made sure that the new Display ... her mailbox name in the Mailbox store in Exchange had not ... I rebuilt the Offline Address Book on the Exchange server and redownloaded ...
    (microsoft.public.exchange.admin)
  • Re: Missing Folders in Documents & Settings for New Users
    ... I renamed the default administrator account <SNIP> I ... Settings folder name, and ProfileImagePath value. ... that you have decided to use, choose Rename, and rename the <user ...
    (microsoft.public.windowsxp.customize)
  • Re: Permissions to Rename a Computer within an AD domain
    ... Renaming a computer account object does not rename the ... renaming it and then rejoining it under the correct name. ... to prompt for the password ...
    (microsoft.public.security)