Problem with NTLM SharePoint 2007 with ASP.NET Web Application Hosted on Sharepoint Server

I have an ASP.NET web application in a Sharepoint 2007 window that calls a web service in SharePoint to retrieve the location of a document (specifically, the GetListItems method).

The service is used with the transferred credentials of a valid Sharepoint account with the corresponding permissions.

ListServiceWrapper listService = new ListServiceWrapper();

/*Pass credentials to service call object*/
listService.Credentials = new NetworkCredential(spUserName, spPassword, spDomain);

/*Set the Url property of the service for the path to a subsite.*/
listService.Url = ConfigurationManager.AppSettings.Get("rootSite") + "/_vti_bin/lists.asmx";

When a web application launches locally in my development window (I am a Sharepoint user in the same domain), the service call works fine. When deployed in the Sharepoint field, the application returns:

Request failed with HTTP status 401: Unauthorized.

- Sharepoint Sharepoint, . , Sharepoint Kerberos NTLM, . , . , NLTM?

+3
1

, .
NTLM . , Kerberos .

, :

+3

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


All Articles