C# Class AdUsers.AdUserProvider

Show file Open project: AktivCo/social Class Usage Examples

Public Methods

Method Description
AdUserProvider ( string domain ) : System
FillCache ( ) : void
GetAllUsers ( ) : List
GetStructure ( AdUser root ) : AdUser
GetUserByLogin ( string login ) : AdUser
Validate ( string login, string pass ) : bool

Private Methods

Method Description
GetCnFromString ( string manager ) : string
GetEntry ( string login ) : System.DirectoryServices.DirectoryEntry
GetUserFromEntry ( System.DirectoryServices.DirectoryEntry di ) : AdUser
GetUsers ( ) : List
OnCacheRemove ( string key, object value, CacheItemRemovedReason reason ) : void

Method Details

AdUserProvider() public method

public AdUserProvider ( string domain ) : System
domain string
return System

FillCache() public method

public FillCache ( ) : void
return void

GetAllUsers() public method

public GetAllUsers ( ) : List
return List

GetStructure() public method

public GetStructure ( AdUser root ) : AdUser
root AdUser
return AdUser

GetUserByLogin() public method

public GetUserByLogin ( string login ) : AdUser
login string
return AdUser

Validate() public method

public Validate ( string login, string pass ) : bool
login string
pass string
return bool