ReportingService2010.LogonUser(String, String, String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
S’enregistre sur un utilisateur et authentifie une requête utilisateur auprès du service Web du Serveur de Rapports. 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
Le mot de passe de l’utilisateur.
- authority
- String
Optionnel. Le nom de domaine à utiliser lors de l’authentification d’un utilisateur. Passez une valeur de null (Nothing dans Visual Basic) pour omettre cet argument.
- Attributs
Remarques
Le tableau ci-dessous présente les informations sur l’en-tête et les autorisations concernant cette opération.
| Utilisation de l’en-tête SOAP | (En) TrustedUserHeaderValue (Dehors) ServerInfoHeaderValue |
| Mode natif : autorisations requises | None |
| Permissions requises en mode SharePoint | Non pris en charge |
Cette méthode lance une OperationNotSupportedSharePointMode exception lorsqu’elle est invoquée en mode SharePoint.
Cette méthode authentifie l’utilisateur spécifié auprès du service Web du Serveur de Rapports lorsque l’authentification personnalisée a été configurée.
Cette méthode doit être appelée via Secure Sockets Layer (SSL). La méthode échoue si elle n’est pas appelée de manière sécurisée. Après l’authentification réussie, le service Web Report Server génère un cookie d’authentification et renvoie le cookie dans l’en-tête HTTPS. La réponse est renvoyée via SSL.