Impersonation in threads in web application

From: Vadim Parn (vax_at_previo.ee)
Date: 05/17/04

  • Next message: ss: "RE: Remoting in VB.net with examples! needed"
    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.


  • Next message: ss: "RE: Remoting in VB.net with examples! needed"
  • Quantcast