Lenguaje

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

Definición

Registra un usuario y autentica una solicitud de usuario en el servicio web del Servidor de Informes. Este método solo se aplica al modo nativo.

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)

Parámetros

userName
String

Nombre del usuario.

password
String

La contraseña del usuario.

authority
String

Opcional. El nombre de dominio a usar al autenticar a un usuario. Pasa un valor de null (Nothing en Visual Basic) para omitir este argumento.

Atributos

Comentarios

La siguiente tabla muestra la información sobre cabeceras y permisos sobre esta operación.

Uso de la cabecera SOAP (En) TrustedUserHeaderValue

(Fuera) ServerInfoHeaderValue
Permisos requeridos en modo nativo None
Permisos requeridos en el modo SharePoint No soportado

Este método genera una OperationNotSupportedSharePointMode excepción cuando se invoca en modo SharePoint.

Este método autentica al usuario especificado al servicio web del Servidor de Informes cuando se ha configurado la autenticación personalizada.

Este método debe llamarse sobre la Capa de Sockets Seguros (SSL). El método falla si no se llama de forma segura. Tras la autenticación exitosa, el servicio web del Servidor de Informes genera una cookie de autenticación y la devuelve en el encabezado HTTPS. La respuesta se devuelve por SSL.

Se aplica a