Re: user.identity.name returns old AD user name



Does the problem go away if you reboot the web server? It sounds like the
LSA on the web server has cached the username for this particular user's SID
and isn't actually going to a domain controller to look it up. I would
expect this cache is is memory and would get wiped out by a reboot. I would
also expect this problem to eventually go away.

The other possibility is that the web server is talking to a domain
controller that has not picked up the update yet via normal replication, but
that sounds less likely unless replication is weird/broken in this
environment.

Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Antonio O''Neal" <AntonioONeal@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F8A0362F-0DF9-44BA-941E-858F2E98F554@xxxxxxxxxxxxxxxx
We changed a username in AD. The user now logs on to a computer on our
network using the new username without any problems. They can not logon
using
the old username. However, when they access a IIS 6.0 web site where a
programmer compares system.web.httpcontext.current.user.identity.name to a
lookup table containing usernames they could not gain access with the new
userid. We created a web page to show what
system.web.httpcontext.current.user.identity.name is returning. It is
returning their old username. If we put the old username in the table the
user may access the web site. The IIS site logs for the web site show the
new username for the user as he accesses the site. I have used adsiedit
to
look at the user's information in AD. It shows only the new username
through
out the the account parameters.

We also have a sharepoint 3.0 site that shows the user's old username when
he accesses that site.

What can I do so system.web.httpcontext.current.user.identity.name will
contain the new username for this renamed account?

Thank you,
Antonio




.



Relevant Pages

  • Encoded WebService SOAP Header?
    ... I would like to make these updates using Web Services. ... an attacker could simply replicate the username / password since I am unable ... Or is there another approach to encrypting these? ... I have tight control over both the web server and my client updating ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: OWA Change Password
    ... What do you mean by "external web server"? ... MVP - Exchange ... > that Daniel did not add to his directions. ... username and password to make it function. ...
    (microsoft.public.exchange.admin)
  • Re: Web site content determined by login credentials?
    ... I suggest you post your question in the ASP.NET newsgroup. ... "Michael Hogan" wrote in message ... > with a username and password on our web site that would allow our clients ... > Win2k and IIS for a web server, but we will soon be upgrading to Server ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Basic authentication with WEBrick?
    ... At this page we will have a login form with username and password. ... form is shown, a Web server authentication, i.e. when a user tries to ... but one that is handled by the WEBrick server - as I ... think is possible if using Apache as the web server. ...
    (comp.lang.ruby)
  • Re: Integrated Windows Authentication
    ... Yes the IIS is part of a domain... ... users on the web server and give them rights to certain pages and they could ... The error is just access denied in the browser after 3 attempts at putting ... in the username and password. ...
    (microsoft.public.inetserver.iis.security)