Impersonation in threads in web application
From: Vadim Parn (vax_at_previo.ee)
Date: 05/17/04
- Previous message: Adam: "Windows Form Socket Permission"
- Next in thread: Svein Terje Gaup: "Re: Impersonation in threads in web application"
- Reply: Svein Terje Gaup: "Re: Impersonation in threads in web application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 17 May 2004 18:09:42 +0300
Hello, All!
Could someone answer to my stupid question:
I have web application. Web.config contains correct entries
<authentication mode="Windows" />
<identity impersonate="true"
userName="registry:HKLM\Software\...\AppIdentity,user"
password="registry:HKLM\Software\...\AppIdentity,pwd" />
And all pages work correctly under correct user. But when I create new
thread - it is created under ASPNET user and when I try to impersonate it
the WindowsIdentity.Impersonate() generates SecurityException (Unable to
impersonate user). What I'm doing wrong? How can I correctly do
impersonation in a newly created thread?
Thanks,
Vadim Parn.
- Previous message: Adam: "Windows Form Socket Permission"
- Next in thread: Svein Terje Gaup: "Re: Impersonation in threads in web application"
- Reply: Svein Terje Gaup: "Re: Impersonation in threads in web application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]