How to tell what account my webservice is running under in Visual Studio 2005

Posted by John Galt on Stack Overflow See other posts from Stack Overflow or by John Galt
Published on 2009-04-23T20:35:35Z Indexed on 2010/04/18 11:03 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

I'm going a little nuts trying to understand the doc on impersonation and delegation and the question has come up what account my webservice is running under.

I am logged as myDomainName\johna on my development workstation called JOHNXP. From Vstudio2005 I start my webservice via Debug and the wsdl page comes up in my browser.

From Task Manager, I see the following while sitting at a breakpoint in my .asmx code:

aspnet_wp.exe pid=1316 UserName=ASPNET devenv.exe pid=3304 UserName=johna

The IIS Directory Security tab for the Virtual Directory that hosts my ws.asmx code has "Enable Anonymous access" UNCHECKED and has "Integrated Windows Authentication" CHECKED.

So when the MSDN people state "you must configure the user account under which the server process runs", what would they be refering to in the case of my little webservice described above?

I am quoting from: http://msdn.microsoft.com/en-us/library/aa302400.aspx

Ultimately, I want this webservice of mine to impersonate whatever authenticated domain user browses through to an invoke of my webservice. My webservice in turn consumes another ASMX webservice on a different server (but same domain). I need this remote webservice to use the impersonated domain user credentials (not those of my webservice on JOHNXP).

So its getting a little snarly for me to understand this and I see I am unclear about the account my web service uses. I think it is ASPNET in IIS 5.1 on WinXP but not sure.

© Stack Overflow or respective owner

Related posts about security

Related posts about asmx