ReportingService2010.LogonUser(String, String, String) Méthode

Définition

Connecte un utilisateur et authentifie sa demande de service Web Report Server. Cette méthode ne s'applique qu'au mode natif.

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)

Paramètres

userName
String

Nom de l'utilisateur.

password
String

Mot de passe de l’utilisateur.

authority
String

Facultatif. Nom de domaine à utiliser lors de l’authentification d’un utilisateur. Passez la valeur null (Nothing en Visual Basic) pour omettre cet argument.

Attributs

Remarques

Le tableau suivant présente les informations relatives aux en-têtes et aux autorisations sur cette opération.

Utilisation de l’en-tête SOAP (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Autorisations requises en mode natif Aucun
Mode SharePoint Autorisations requises Non prise en charge

Cette méthode lève une exception lorsqu’elle OperationNotSupportedSharePointMode est appelée en mode SharePoint.

Cette méthode authentifie l’utilisateur spécifié auprès du service Web Report Server lorsque l’authentification personnalisée a été configurée.

Cette méthode doit être appelée via SSL (Secure Sockets Layer). La méthode échoue si elle n’est pas appelée de manière sécurisée. Une fois l’authentification réussie, le service Web Report Server génère un cookie d’authentification et retourne le cookie dans l’en-tête HTTPS. La réponse est retournée via SSL.

S’applique à