How to find out which account my web service is running in Visual Studio 2005

I'm going to guess a bit, trying to understand the document on impersonation and delegation, and the question arises, because of which my web service works.

I registered as myDomainName \ johna on my development workstation called JOHNXP. From Vstudio2005, I run my web service through Debug, and the wsdl page appears in my browser.

From the task manager, I see the following, 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 UNCHECKED Enable Anonymous Access and is checked with Integrated Windows Authentication.

So, when the MSDN people indicate "you must set up the user account under which the server process is running," what will they refer to in the case of my small web service described above?

I quote:      http://msdn.microsoft.com/en-us/library/aa302400.aspx

Ultimately, I want this web service of mine to pretend to be an authenticated domain user looking to call my web service. My web service, in turn, consumes another ASMX web service on a different server (but in the same domain). I need this remote web service to use the credentials of a user without a username (and not for my JOHNXP web service).

, , , , , , -. , ASPNET IIS 5.1 WinXP, .

+3
2

, ASP.NET( - ASMX), ASP.NET Machine Account (ASPNET), .

, ASP.NET . Web.config :

<system.web>
  <!-- ASP.NET runs as the authenticated user -->
  <identity impersonate="true" />
</system.web>

<system.web>
  <!-- ASP.NET runs as the specified user -->
  <identity impersonate="true"
            username="DOMAIN\user"
            password="password" />
</system.web>

Windows IIS, , Windows , HTTP-.
ASP.NET .

+2

, , :

<system.web>
  <!-- ASP.NET runs as the specified user -->
  <identity impersonate="true"
            userName="DOMAIN\user"
            password="password" />
</system.web>

N → _

,

+2

Source: https://habr.com/ru/post/1706992/


All Articles