Groups | Blog | Home
all groups > asp.net security > may 2008 >

asp.net security : WindowsIdentity Question


Jon Mcleod
5/20/2008 7:24:29 PM
With WindowsIdentity, is it possible to figure out the user who is doing
the impersonating. For instance, if web.config is this:

<authentication mode="Windows"/>
<identity impersonate="true" userName="netuser" password="p"/>

and I log in as user "jmcleod", I can look at the Name property to
figure out that the user is impersonating "netuser" .. but how can I
figure out that the real user sitting at the keyboard is "jmcleod"?

Henning Krause [MVP - Exchange]
5/21/2008 10:26:47 AM
Hello Jon,

take a look at the HttpContext.Current.User property.

Kind regards,
Hennign Krause

[quoted text, click to view]
AddThis Social Bookmark Button