Lingua

ReportingService2010.LogonUser(String, String, String) Metodo

Definizione

Effettua il login su un utente e autentica una richiesta utente al servizio Web del Report Server. Questo metodo si applica solo alla modalità nativa.

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)

Parametri

userName
String

Nome dell'utente.

password
String

La password dell'utente.

authority
String

Opzionale. Il nome di dominio da usare per autenticare un utente. Passa un valore di null (Nothing in Visual Basic) per omettere questo argomento.

Attributi

Commenti

La tabella sottostante mostra informazioni sull'intestazione e sui permessi di questa operazione.

Utilizzo dell'intestazione SOAP (Dentro) TrustedUserHeaderValue

(Fuori) ServerInfoHeaderValue
Permessi richiesti per la modalità nativa None
Permessi richiesti in modalità SharePoint Non supportato

Questo metodo genera un'eccezione OperationNotSupportedSharePointMode quando viene invocato in modalità SharePoint.

Questo metodo autentica l'utente specificato al servizio Web del Report Server quando è stata configurata un'autenticazione personalizzata.

Questo metodo deve essere chiamato tramite Secure Sockets Layer (SSL). Il metodo fallisce se non viene chiamato in modo sicuro. Dopo l'autenticazione riuscita, il servizio Web del Report Server genera un cookie di autenticazione e restituisce il cookie nell'intestazione HTTPS. La risposta viene restituita tramite SSL.

Si applica a