WindowsPrincipal is incorrect after AD account rename
- From: "lgalusha" <lgalusha@xxxxxxxxxxxxxxxxx>
- Date: Wed, 15 Nov 2006 12:26:25 -0600
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?
.
- Follow-Ups:
- RE: WindowsPrincipal is incorrect after AD account rename
- From: Luke Zhang [MSFT]
- RE: WindowsPrincipal is incorrect after AD account rename
- Prev by Date: RE: Trying to run in partial trust (getting a PolicyException)
- Next by Date: Re: newbie: anonymous access and IUSR_ account
- Previous by thread: Apply Recursive ACL Safely?
- Next by thread: RE: WindowsPrincipal is incorrect after AD account rename
- Index(es):
Relevant Pages
|