C# 클래스 GSF.Identity.WindowsUserInfo

상속: IUserInfo
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

Private Properties

프로퍼티 타입 설명
AddUserToLocalGroup bool
AuthenticateUser IPrincipal
CleanSid string
ConvertToLong long
CreateDirectorySearcher System.DirectoryServices.DirectorySearcher
Dispose void
IsSchemaSID bool
LocalAccountExists bool
RemoveUserFromLocalGroup bool
SystemEvents_PowerModeChanged void
UserIsInLocalGroup bool
WindowsUserInfo System

공개 메소드들

메소드 설명
AccountNameToSID ( string accountName ) : string
ChangePassword ( string oldPassword, string newPassword ) : void
CreateLocalGroup ( string groupName, string groupDescription ) : bool
CreateLocalUser ( string userName, string password, string userDescription ) : bool
Dispose ( ) : void

Releases all the resources used by the WindowsUserInfo object.

GetBuiltInLocalGroups ( ) : string[]
GetLocalGroupUserList ( string groupName ) : string[]
GetUserPropertyValue ( string propertyName ) : string
GetUserPropertyValueCollection ( string propertyName ) : System.DirectoryServices.PropertyValueCollection
ImpersonateUser ( string domain, string userName, string password ) : System.Security.Principal.WindowsImpersonationContext
Initialize ( ) : bool
IsGroupSID ( string sid ) : bool
IsUserSID ( string sid ) : bool
LocalGroupExists ( string groupName ) : bool
LocalUserExists ( string userName ) : bool
RemoveLocalGroup ( string groupName ) : bool
RemoveLocalUser ( string userName ) : bool
SIDToAccountName ( string sid ) : string
SetLocalUserPassword ( string userName, string password ) : void
WindowsUserInfo ( UserInfo parent ) : System

비공개 메소드들

메소드 설명
AddUserToLocalGroup ( string groupName, string userName ) : bool
AuthenticateUser ( string domain, string userName, string password, string &errorMessage ) : IPrincipal
CleanSid ( string sid ) : string
ConvertToLong ( object largeInteger ) : long
CreateDirectorySearcher ( ) : System.DirectoryServices.DirectorySearcher
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the WindowsUserInfo object and optionally releases the managed resources.

IsSchemaSID ( string sid, string schemaClassName ) : bool
LocalAccountExists ( System.DirectoryServices.DirectoryEntry localMachine, string accountName, string schemaType, bool allowActiveDirectoryAccount, System.DirectoryServices.DirectoryEntry &accountEntry ) : bool
RemoveUserFromLocalGroup ( string groupName, string userName ) : bool
SystemEvents_PowerModeChanged ( object sender, Microsoft.Win32.PowerModeChangedEventArgs e ) : void
UserIsInLocalGroup ( string groupName, string userName ) : bool
WindowsUserInfo ( ) : System

메소드 상세

AccountNameToSID() 공개 정적인 메소드

public static AccountNameToSID ( string accountName ) : string
accountName string
리턴 string

ChangePassword() 공개 메소드

public ChangePassword ( string oldPassword, string newPassword ) : void
oldPassword string
newPassword string
리턴 void

CreateLocalGroup() 공개 정적인 메소드

public static CreateLocalGroup ( string groupName, string groupDescription ) : bool
groupName string
groupDescription string
리턴 bool

CreateLocalUser() 공개 정적인 메소드

public static CreateLocalUser ( string userName, string password, string userDescription ) : bool
userName string
password string
userDescription string
리턴 bool

Dispose() 공개 메소드

Releases all the resources used by the WindowsUserInfo object.
public Dispose ( ) : void
리턴 void

GetBuiltInLocalGroups() 공개 정적인 메소드

public static GetBuiltInLocalGroups ( ) : string[]
리턴 string[]

GetLocalGroupUserList() 공개 정적인 메소드

public static GetLocalGroupUserList ( string groupName ) : string[]
groupName string
리턴 string[]

GetUserPropertyValue() 공개 메소드

public GetUserPropertyValue ( string propertyName ) : string
propertyName string
리턴 string

GetUserPropertyValueCollection() 공개 메소드

public GetUserPropertyValueCollection ( string propertyName ) : System.DirectoryServices.PropertyValueCollection
propertyName string
리턴 System.DirectoryServices.PropertyValueCollection

ImpersonateUser() 공개 정적인 메소드

public static ImpersonateUser ( string domain, string userName, string password ) : System.Security.Principal.WindowsImpersonationContext
domain string
userName string
password string
리턴 System.Security.Principal.WindowsImpersonationContext

Initialize() 공개 메소드

public Initialize ( ) : bool
리턴 bool

IsGroupSID() 공개 정적인 메소드

public static IsGroupSID ( string sid ) : bool
sid string
리턴 bool

IsUserSID() 공개 정적인 메소드

public static IsUserSID ( string sid ) : bool
sid string
리턴 bool

LocalGroupExists() 공개 정적인 메소드

public static LocalGroupExists ( string groupName ) : bool
groupName string
리턴 bool

LocalUserExists() 공개 정적인 메소드

public static LocalUserExists ( string userName ) : bool
userName string
리턴 bool

RemoveLocalGroup() 공개 정적인 메소드

public static RemoveLocalGroup ( string groupName ) : bool
groupName string
리턴 bool

RemoveLocalUser() 공개 정적인 메소드

public static RemoveLocalUser ( string userName ) : bool
userName string
리턴 bool

SIDToAccountName() 공개 정적인 메소드

public static SIDToAccountName ( string sid ) : string
sid string
리턴 string

SetLocalUserPassword() 공개 정적인 메소드

public static SetLocalUserPassword ( string userName, string password ) : void
userName string
password string
리턴 void

WindowsUserInfo() 공개 메소드

public WindowsUserInfo ( UserInfo parent ) : System
parent UserInfo
리턴 System