Re: Impersonate in ASP.NET and Server Timer - FileSystemWatcher
From: jdn (kingcrim@earthlink.net)
Date: 10/04/02
- Next message: Michael Green: "RE: Event Log & Security"
- Previous message: Willy Denoyette [MVP]: "Re: Howto: LDAP Authenticate user with pwdlastset=0 in C# .NET"
- In reply to: Willy Denoyette [MVP]: "Re: Impersonate in ASP.NET and Server Timer - FileSystemWatcher"
- Next in thread: Willy Denoyette [MVP]: "Re: Impersonate in ASP.NET and Server Timer - FileSystemWatcher"
- Reply: Willy Denoyette [MVP]: "Re: Impersonate in ASP.NET and Server Timer - FileSystemWatcher"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "jdn" <kingcrim@earthlink.net> Date: Fri, 4 Oct 2002 16:54:27 -0500
How do you SetThreadToken in .NET?
jdn
"Willy Denoyette [MVP]" <willy.denoyette@pandora.be> wrote in message
news:#klYjp4UCHA.1976@tkmsftngp11...
> Peter ,
> When impersonating, the thread handling the request uses the impersonation
token, but the timer thread (from the threadpool) uses
> the process token. This is the normal behavior in windows since it's
introduction. If you want another thread to use the
> impersonation token, you must explicitly call 'SetThreadToken' using as
argument, the token obtained for the "Main" thread.
>
> Willy.
>
>
> "Peter Royers" <peter.royers@eds.com> wrote in message
news:b75201c25348$e116be30$3aef2ecf@TKMSFTNGXA09...
> > Hi,
> >
> > I am having a problem with the following scenario:
> > I have webapp where I am using impersonation (in
> > web.config) to run under the user's logged in credentials.
> > This works fine.
> > I have also added a Server Timer in the web page.
> > Whenever the elapsed event is called from this timer
> > class it runs under the aspnet account in stead of the
> > user's credentials. I noticed the same effect with the
> > filesystemwatcher.
> > Does anyone has an idea on how to resolve or explain this?
> > Thanks.
>
>
- Next message: Michael Green: "RE: Event Log & Security"
- Previous message: Willy Denoyette [MVP]: "Re: Howto: LDAP Authenticate user with pwdlastset=0 in C# .NET"
- In reply to: Willy Denoyette [MVP]: "Re: Impersonate in ASP.NET and Server Timer - FileSystemWatcher"
- Next in thread: Willy Denoyette [MVP]: "Re: Impersonate in ASP.NET and Server Timer - FileSystemWatcher"
- Reply: Willy Denoyette [MVP]: "Re: Impersonate in ASP.NET and Server Timer - FileSystemWatcher"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|