Share via


ReportingService2010.LogonUser(String, String, String) Method

Definition

Logs on a user and authenticates a user request to the Report Server Web service. This method only applies to native mode.

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)

Parameters

userName
String

The name of the user.

password
String

The password of the user.

authority
String

Optional.The domain name to use when authenticating a user. Pass a value of null (Nothing in Visual Basic) to omit this argument.

Attributes

Remarks

The table below shows header and permissions information on this operation.

SOAP Header Usage (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Native Mode Required Permissions None
SharePoint Mode Required Permissions Not supported

This method throws an OperationNotSupportedSharePointMode exception when invoked in SharePoint mode.

This method authenticates the specified user to the Report Server Web service when custom authentication has been configured.

This method must be called over Secure Sockets Layer (SSL). The method fails if it is not called securely. Upon successful authentication, the Report Server Web service generates an authentication cookie and returns the cookie in the HTTPS header. The response is returned over SSL.

Applies to