Hi Ghilas,
Check this ASP.NET Identity Matrix:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetAP05.asp
which will give you solution to your problem.
Still If you face the problem, even after follwoing the above ASP.NET
Identity Matrix, try this:
Impersonate a Specific User for All the Requests of an ASP.NET Application :
To impersonate a specific user for all the requests on all pages of an
ASP.NET application, you can specify the userName and password attributes in
the <identity> tag of the Web.config file for that application. For example:
<identity impersonate="true" userName="accountname" password="password" />
and for security purpose use the ASPNETSETREG (For user name and pwd in
plain text)...
Thanks,
Warm Regards,
Arun Ganesh.
[quoted text, click to view] "Viorel Ghilas" wrote:
> Hi all
>
> I have webserver that share common services and i set in web config
> <identity impersonate="true" /> and on IIS I set specific user account that
> will be used. The main problem that when the IIS start applicaton and
> execute the methods from Global.asax.cs it use ASPNET account but not my,
> after that it switch to impersonate account. But in my situation I use WSE2
> where I need to check password in UsernameTokenManager for that I need to
> connect to DB, but I use SSPI connection (with user from impersonate) that
> fail. How to solve this problem, I need trusted connection that use my user
> from IIS. I need only one user everywhere, how to do that in
> UsernameTokenManager.AuthenticateToken(UsernameToken token) to use
> impersonate account ?
>
> with best reagrd
> Viorel
>
>