impersonate in new thread




My ASP.NET application sets up impersonate in the config file:

<identity impersonate="true" userName="m1\aspuser" password="xyz" /


Later, within my application, I create a thread:

x= New processor
Dim ts As New ThreadStart(AddressOf x.start)
Dim thread As New Thread(ts)
thread.Start()

I suspect this thread does not have the same security context as the
thread that started it (the ASP.NET thread). How do I set up this
thread to have the same security context as the main thread?

.



Relevant Pages

  • Re: Code works in Windows app. but not in ASP.Net
    ... The username format you are using should be fine. ... "The specified domain either does not exist or could not be contacted" ... you will be using the current security context in ASP.NET ... Dim srch As System.DirectoryServices.DirectorySearcher ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: LDAP, Email
    ... If your current security context is not a domain identity or cannot ... try changing your DirectoryEntry constructor to supply ... Dim oDS As New DirectorySearcher ... Dim strEmail As String ...
    (microsoft.public.dotnet.security)
  • Re: Config File Project Output: Did they change this in 2005?
    ... |I had occasion tonight to write an installer class that changed ... | something in a config file tonight (I had never had a need to do it, ... | Dim installlog As New System.IO.StreamWriter ... | Dim ProvidedName As String = ...
    (microsoft.public.dotnet.languages.vb)
  • Re: LDAP lookup: fails on remote computers -- Please help
    ... > the query from a client however the query fails to run. ... > 'Impersonate the Windows AD user running the application ... > Dim impersonationContext As ... > An unhandled exception was generated during the execution of the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Permission denied problem. please help me
    ... You want delegation which will allow off-host access as the user who has authenticated in the browser. ... I am using below link page code to impersonate. ... Dim spath As String ...
    (microsoft.public.dotnet.framework.aspnet)