I am trying to impersonate the windows account in code like in
http://support.microsoft.com/default...b;en-us;306158 and then all
aspx pages to run on this new account (ACL is only for this account).
But after the first page when I impersonate it and I redirect to another
page the account reverse to original.
How can I do to maintain impersonation but in code not in web.config.
"Scott Allen" <bitmask@[nospam].fred.net> a scris în mesajul de
stiri:c4********************************@4ax.com.. .
Have you investigated using impersonate=true in web.config?
--
Scott
http://www.OdeToCode.com
On Thu, 12 Aug 2004 16:16:45 +0300, "Sorin Sandu"
<ss****@yahoo.com.del> wrote:
This code is valid only for current page ?
WindowsIdentity newId = new WindowsIdentity(dupeTokenHandle);
WindowsImpersonationContext impersonatedUser = newId.Impersonate();
After I impersonate current user and Response.Redirect to another page
there
WindowsIdentity is changed to user before Impersonate.
Is it normal ?
How can I do to maintain Impersonation to all my pages ?