C# Class ADLib.ADUser

Represents an AD User object, wraps an AD UserPrincipal
Inheritance: ADObject
Afficher le fichier Open project: bolenc/Active-Directory-Examples Class Usage Examples

Private Properties

Свойство Type Description
Sync_Groups void

Méthodes publiques

Méthode Description
ADUser ( ActiveDirectory connection ) : System

Create a new AD User on the given connection

ADUser ( ActiveDirectory connection, System.DirectoryServices.AccountManagement.UserPrincipal user ) : System

Create an AD User from the given connection and UserPrincipal

MoveTo ( ) : void
Save ( ) : void

Save the local ADUser data to the remote server

addToGroup ( string groupName ) : void

Add the ADUser to a group

find ( ) : IEnumerable
removeFromGroup ( string groupName ) : void

Remove the ADUser from a group

Private Methods

Méthode Description
Sync_Groups ( ) : void

Synchronize groups between the local ADUser object and the AD server record

Method Details

ADUser() public méthode

Create a new AD User on the given connection
public ADUser ( ActiveDirectory connection ) : System
connection ActiveDirectory The AD connection
Résultat System

ADUser() public méthode

Create an AD User from the given connection and UserPrincipal
public ADUser ( ActiveDirectory connection, System.DirectoryServices.AccountManagement.UserPrincipal user ) : System
connection ActiveDirectory The AD connection
user System.DirectoryServices.AccountManagement.UserPrincipal An existing UserPrincipal object
Résultat System

MoveTo() public méthode

public MoveTo ( ) : void
Résultat void

Save() public méthode

Save the local ADUser data to the remote server
public Save ( ) : void
Résultat void

addToGroup() public méthode

Add the ADUser to a group
public addToGroup ( string groupName ) : void
groupName string The name of the group to which the user should be added
Résultat void

find() public méthode

public find ( ) : IEnumerable
Résultat IEnumerable

removeFromGroup() public méthode

Remove the ADUser from a group
public removeFromGroup ( string groupName ) : void
groupName string The name of the group from which the ADUser should be removed
Résultat void