Impersonation question
mjpmsa_at_yahoo.com
Date: 06/08/05
- Next message: Jasmine: "session manager vs Form authentication in the Global.asax.cs file"
- Previous message: Nicole Calinoiu: "Re: Code Access Security & Local Permissions Issue?"
- Next in thread: Dominick Baier [DevelopMentor]: "Re: Impersonation question"
- Reply: Dominick Baier [DevelopMentor]: "Re: Impersonation question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Jasmine: "session manager vs Form authentication in the Global.asax.cs file"
- Previous message: Nicole Calinoiu: "Re: Code Access Security & Local Permissions Issue?"
- Next in thread: Dominick Baier [DevelopMentor]: "Re: Impersonation question"
- Reply: Dominick Baier [DevelopMentor]: "Re: Impersonation question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|