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)

Usage

Visual Basic
Dim upn As String
Dim returnValue As WindowsIdentity

returnValue = S4UClient.UpnLogon(upn)

Syntax

Visual Basic
Public Shared Function UpnLogon ( _
		upn As String _
) As WindowsIdentity
C#
public static WindowsIdentity UpnLogon (
		string upn
)
C++
public:
static WindowsIdentity^ UpnLogon (
		String^ upn
)
J#
public static WindowsIdentity UpnLogon (
		String upn
)
JScript
public static function UpnLogon (
		upn : String
) : WindowsIdentity

Parameters

upn

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

Return Value

Returns WindowsIdentity.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

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

See Also