C# Class Microsoft.Protocols.TestManager.KerberosPlugin.ImpersonationHelper

Inheritance: IDisposable
Mostrar archivo Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method Description
Dispose ( ) : void
ImpersonationHelper ( string userName, string domainName, string password, LogonType logonType = LogonType.LOGON32_LOGON_NEW_CREDENTIALS, LogonProvider logonProvider = LogonProvider.LOGON32_PROVIDER_WINNT50 ) : System

Impersonate a specific user context

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CloseHandle ( IntPtr handle ) : bool
ImpersonateLoggedOnUser ( IntPtr hToken ) : bool
LogonUser ( String lpszUserName, String lpszDomain, String lpszPassword, int dwLogonType, int dwLogonProvider, IntPtr &phToken ) : bool
RevertToSelf ( ) : bool

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ImpersonationHelper() public method

Impersonate a specific user context
public ImpersonationHelper ( string userName, string domainName, string password, LogonType logonType = LogonType.LOGON32_LOGON_NEW_CREDENTIALS, LogonProvider logonProvider = LogonProvider.LOGON32_PROVIDER_WINNT50 ) : System
userName string
domainName string
password string
logonType LogonType
logonProvider LogonProvider
return System