G
Guest
Hi!
I am trying to write an asp.net app (page/class) which is going to make several calls to distibuted objects (com+/serviced componentes) which in turns talks to other distributed computers. These COM+/serviced componentes object has security settings that allows only privileged users to instanciate and use them. So I have the impersonate=true flag setted in web.config.
Because of the long responsetimes and low CPU usage when calling these objects I thought it would be a great idea to run several questions in threads in a parallel manner.
It was here I encountered some problems I have't been able to solve yet.
The main thread run as my user(checked System.Security.Principal.WindowsIdentity.Current) BUT the child-threads run as the ASPNET user and as a cause of this, they do not have the right priveledges to execute my Serviced Components.
I doesn't make any difference if i use the threadpool (ThreadPool.QueueUserWorkItem) or just create a new Thread.
Nether if I change the user in machine.config, from "machine" to "SYSTEM" or to "domain/johnDoe", i.e. a real user, do I get my page to work, just "access denied" all the time.
So, please, does anybody has a workaround? Unfortunatly I can't use the Impersonate-method, because of my companys security policies.
I just want the damn thread to run under the same Identity
Regards!
/Markus P
I am trying to write an asp.net app (page/class) which is going to make several calls to distibuted objects (com+/serviced componentes) which in turns talks to other distributed computers. These COM+/serviced componentes object has security settings that allows only privileged users to instanciate and use them. So I have the impersonate=true flag setted in web.config.
Because of the long responsetimes and low CPU usage when calling these objects I thought it would be a great idea to run several questions in threads in a parallel manner.
It was here I encountered some problems I have't been able to solve yet.
The main thread run as my user(checked System.Security.Principal.WindowsIdentity.Current) BUT the child-threads run as the ASPNET user and as a cause of this, they do not have the right priveledges to execute my Serviced Components.
I doesn't make any difference if i use the threadpool (ThreadPool.QueueUserWorkItem) or just create a new Thread.
Nether if I change the user in machine.config, from "machine" to "SYSTEM" or to "domain/johnDoe", i.e. a real user, do I get my page to work, just "access denied" all the time.
So, please, does anybody has a workaround? Unfortunatly I can't use the Impersonate-method, because of my companys security policies.
I just want the damn thread to run under the same Identity
Regards!
/Markus P