Re: Impersonation in threads in web application
From: Svein Terje Gaup (stgaup_at_broadpark.no.spam)
Date: 05/17/04
- Next message: .NetDave: "MessageQueuePermission Problem"
- Previous message: Eugene V. Bobukh [MS]: "Re: SecurityException on InvokeMember with StrongNameIdentityPermission"
- In reply to: Vadim Parn: "Impersonation in threads in web application"
- Next in thread: Vadim Parn: "Re: Impersonation in threads in web application"
- Reply: Vadim Parn: "Re: Impersonation in threads in web application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 17 May 2004 22:51:20 +0200
Perhaps you could try to change the user that aspnet uses to SYSTEM. I'm
guessing you are running under the MACHINE user. You can change this in
machine.config in the processModel key.
Sincerely
Svein Terje Gaup
"Vadim Parn" <vax@previo.ee> wrote in message
news:eSHi1DCPEHA.3348@TK2MSFTNGP09.phx.gbl...
> 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.
>
>
- Next message: .NetDave: "MessageQueuePermission Problem"
- Previous message: Eugene V. Bobukh [MS]: "Re: SecurityException on InvokeMember with StrongNameIdentityPermission"
- In reply to: Vadim Parn: "Impersonation in threads in web application"
- Next in thread: Vadim Parn: "Re: Impersonation in threads in web application"
- Reply: Vadim Parn: "Re: Impersonation in threads in web application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|