2011-02-05 21 views

答えて

2

プロバイダーインスタンスを取得して、Membership.ValidateUser(username, password)のような操作を行うことはできません。

あなたは(下のC#の例 - あなたはPythonで似た何かをしなければならない)ログイン操作を実行し、 the Authentication Web serviceへの参照を作成する必要があり

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)); 
} 

し、得られたクッキーを使用します。


Reading a SharePoint list with PHPポストを読む - それはあなたに、マイクロソフト以外の環境からのSharePointへのアクセスに関するいくつかのアイデアを与えるかもしれません。

関連する問題