C# Class MSDNSWebAdmin.AppCode.WindowsAuthentication

Windows Authentication

Used to authenticate against domain/server username/password

ファイルを表示 Open project: drorgl/MSDNSWebAdmin

Public Methods

Method Description
Authenticate ( string username, string password, string domain ) : bool

Attemps to authenticate a Windows user

Private Methods

Method Description
CloseHandle ( IntPtr hObject ) : bool
LogonUser ( string pszUsername, string pszDomain, string pszPassword, LogonType dwLogonType, LogonProvider dwLogonProvider, IntPtr &phToken ) : bool

Method Details

Authenticate() public static method

Attemps to authenticate a Windows user
public static Authenticate ( string username, string password, string domain ) : bool
username string Username
password string Password
domain string Domain
return bool