S4UClient.UpnLogon Method

Creates an impersonate-capable WindowsIdentity from a Kerberos unique principal name (UPN) by using the local WindowsTokenService.

Namespace: Microsoft.IdentityModel.WindowsTokenService
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Verwendung

    Dim upn As String
Dim returnValue As WindowsIdentity

returnValue = S4UClient.UpnLogon(upn)

Syntax

'Declaration
Public Shared Function UpnLogon ( _
    upn As String _
) As WindowsIdentity
public static WindowsIdentity UpnLogon (
    string upn
)
public:
static WindowsIdentity^ UpnLogon (
    String^ upn
)
public static WindowsIdentity UpnLogon (
    String upn
)
public static function UpnLogon (
    upn : String
) : WindowsIdentity

Parameter

  • upn
    The Kerberos unique principal name (UPN) of the windows identity desired.

Rückgabewert

Returns WindowsIdentity.

Threadsicherheit

Beliebige öffentliche, statische (Freigegebene in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Plattformen

Entwicklungsplattformen

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

Siehe auch

Referenz

S4UClient Class
S4UClient Members
Microsoft.IdentityModel.WindowsTokenService Namespace