Impersonation question

mjpmsa_at_yahoo.com
Date: 06/08/05


Date: 8 Jun 2005 08:06:59 -0700

I need to write a simple ASP.Net application. In it, I need to
discover the current user's Windows logon name. To do this, I've
created a web.config with these contents (from another post seen here):

<configuration>
   <system.web>
      <identity impersonate = "true"/>
   </system.web>
</configuration>

Then in my web page, I can print the username with:

<% =System.Security.Principal.WindowsIdentity.GetCurrent().Name %>

My question is, if I use this technique, is the whole ASP.Net page
running in the context of the logged in user instead of ASPNET? If so,
is there another way I can get at the logged in user name without
turning on impersonation for the whole session?

Thanks,
Matt



Relevant Pages

  • Jetty Session ID Prediction
    ... Name: Jetty Session Id Prediction ... Discover: Chris Anley ... The views expressed in this email do not necessarily reflect NGS policy. ...
    (Bugtraq)
  • [VulnWatch] Jetty Session ID Prediction
    ... Name: Jetty Session Id Prediction ... Discover: Chris Anley ... The views expressed in this email do not necessarily reflect NGS policy. ...
    (VulnWatch)
  • Re: [SLE] /etc/opt/kde3/share/config/kdm/kdmrc in 9.1
    ... > it logs you out. ... How did you discover this? ... How would one trigger this type of session? ...
    (SuSE)
  • Re: SOAP header error
    ... Session session = null; ... BeginSession begin = new BeginSession; ... EndSession end = new EndSession; ... return (this.Discover(new Discover(RequestType, Restrictions, ...
    (microsoft.public.data.xmlanalysis)
  • Re: Impersonation question
    ... you don't have to use impersonation to accomplish that. ... Dominick Baier - DevelopMentor ... > discover the current user's Windows logon name. ...
    (microsoft.public.dotnet.security)