C# Class GSF.Identity.WindowsUserInfo

Inheritance: IUserInfo
Afficher le fichier Open project: GridProtectionAlliance/gsf

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AccountNameToSID() public static méthode

public static AccountNameToSID ( string accountName ) : string
accountName string
Résultat string

ChangePassword() public méthode

public ChangePassword ( string oldPassword, string newPassword ) : void
oldPassword string
newPassword string
Résultat void

CreateLocalGroup() public static méthode

public static CreateLocalGroup ( string groupName, string groupDescription ) : bool
groupName string
groupDescription string
Résultat bool

CreateLocalUser() public static méthode

public static CreateLocalUser ( string userName, string password, string userDescription ) : bool
userName string
password string
userDescription string
Résultat bool

Dispose() public méthode

Releases all the resources used by the WindowsUserInfo object.
public Dispose ( ) : void
Résultat void

GetBuiltInLocalGroups() public static méthode

public static GetBuiltInLocalGroups ( ) : string[]
Résultat string[]

GetLocalGroupUserList() public static méthode

public static GetLocalGroupUserList ( string groupName ) : string[]
groupName string
Résultat string[]

GetUserPropertyValue() public méthode

public GetUserPropertyValue ( string propertyName ) : string
propertyName string
Résultat string

GetUserPropertyValueCollection() public méthode

public GetUserPropertyValueCollection ( string propertyName ) : System.DirectoryServices.PropertyValueCollection
propertyName string
Résultat System.DirectoryServices.PropertyValueCollection

ImpersonateUser() public static méthode

public static ImpersonateUser ( string domain, string userName, string password ) : System.Security.Principal.WindowsImpersonationContext
domain string
userName string
password string
Résultat System.Security.Principal.WindowsImpersonationContext

Initialize() public méthode

public Initialize ( ) : bool
Résultat bool

IsGroupSID() public static méthode

public static IsGroupSID ( string sid ) : bool
sid string
Résultat bool

IsUserSID() public static méthode

public static IsUserSID ( string sid ) : bool
sid string
Résultat bool

LocalGroupExists() public static méthode

public static LocalGroupExists ( string groupName ) : bool
groupName string
Résultat bool

LocalUserExists() public static méthode

public static LocalUserExists ( string userName ) : bool
userName string
Résultat bool

RemoveLocalGroup() public static méthode

public static RemoveLocalGroup ( string groupName ) : bool
groupName string
Résultat bool

RemoveLocalUser() public static méthode

public static RemoveLocalUser ( string userName ) : bool
userName string
Résultat bool

SIDToAccountName() public static méthode

public static SIDToAccountName ( string sid ) : string
sid string
Résultat string

SetLocalUserPassword() public static méthode

public static SetLocalUserPassword ( string userName, string password ) : void
userName string
password string
Résultat void

WindowsUserInfo() public méthode

public WindowsUserInfo ( UserInfo parent ) : System
parent UserInfo
Résultat System