Вы не можете получить экземпляр провайдера, а затем сделать что-то вроде Membership.ValidateUser(username, password)
.
Вам необходимо создать ссылку на Аутентификацию Веб-сервис , выполнить операцию входа в систему(Пример C # ниже - вы должны сделать что-то подобное в Python):
string siteUrl = "http://example.com/sites/hr";
AuthenticationService.Authentication client = new AuthenticationService.Authentication();
client.AllowAutoRedirect = true;
client.CookieContainer = new CookieContainer();
client.Url = siteUrl + "_vti_bin/Authentication.asmx";
AuthenticationService.LoginResult loginResult = client.Login(username, password);
if (loginResult.ErrorCode == AuthenticationService.LoginErrorCode.NoError)
{
string cookie = client.CookieContainer.GetCookieHeader(new Uri(siteUrl));
}
и использовать полученный cookie.
Читать Чтение списка SharePoint с помощью PHP post - это может дать вам некоторые идеи относительно доступа к SharePoint из среды, отличной от Microsoft.