Share via


ReportingService2010.LogonUser(String, String, String) メソッド

定義

ユーザーのログオンを処理し、レポート サーバー Web サービスへのユーザーの要求を認証します。 このメソッドは、ネイティブ モードにのみ適用されます。

public:
 void LogonUser(System::String ^ userName, System::String ^ password, System::String ^ authority);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/LogonUser", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public void LogonUser (string userName, string password, string authority);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/LogonUser", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.LogonUser : string * string * string -> unit
Public Sub LogonUser (userName As String, password As String, authority As String)

パラメーター

userName
String

ユーザーの名前です。

password
String

ユーザーのパスワード。

authority
String

省略可能。ユーザーを認証するときに使用するドメイン名です。 この引数を省略する場合は、null (Visual Basic では Nothing) の値を渡します。

属性

注釈

次の表に、この操作に関連するヘッダーおよび権限の情報を示します。

SOAP ヘッダーの使用方法 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
ネイティブ モードで必要なアクセス許可 なし
SharePoint モードで必要なアクセス許可 サポートされていません

SharePoint モードで呼び出されると、このメソッドは OperationNotSupportedSharePointMode 例外をスローします。

カスタム認証が構成されている場合、このメソッドが、指定されたユーザーをレポート サーバー Web サービスに対して認証します。

このメソッドは、SSL (Secure Sockets Layer) を介して呼び出す必要があります。 セキュリティで保護された呼び出しでない場合、メソッドは失敗します。 正常に認証が行われると、レポート サーバー Web サービスは認証クッキーを生成し、HTTPS ヘッダーのクッキーを返します。 応答は、SSL を介して返されます。

適用対象