Hi,
We are creating an application that we wish to use the impersonation items in .NET v2.0.
When creating the impersonation on a single page (using windowsidentity), this seems to be fine and the user changes.
However, when redirecting to another page, the windowsidentity.getcurrent() reverts back to the originally logged in user.
Effectively we start the application with a login page and wish to impersonate the user that enteres their details (and not necessarily the person that is logged in to the network/machine). This way, we wish to pass the credentials to SQLServer to audit their activity.
Using .NET v2.0 on windows xp/2000 connecting to sqlserver2000.
Both the settings:
<authentication mode="Windows"/>
<identity impersonate="true"/>
are in the web.config.
Cheers,
Woody.
We are creating an application that we wish to use the impersonation items in .NET v2.0.
When creating the impersonation on a single page (using windowsidentity), this seems to be fine and the user changes.
However, when redirecting to another page, the windowsidentity.getcurrent() reverts back to the originally logged in user.
Effectively we start the application with a login page and wish to impersonate the user that enteres their details (and not necessarily the person that is logged in to the network/machine). This way, we wish to pass the credentials to SQLServer to audit their activity.
Using .NET v2.0 on windows xp/2000 connecting to sqlserver2000.
Both the settings:
<authentication mode="Windows"/>
<identity impersonate="true"/>
are in the web.config.
Cheers,
Woody.