C# Класс ADLib.ADUser

Represents an AD User object, wraps an AD UserPrincipal
Наследование: ADObject
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Sync_Groups void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Sync_Groups ( ) : void

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

Описание методов

ADUser() публичный Метод

Create a new AD User on the given connection
public ADUser ( ActiveDirectory connection ) : System
connection ActiveDirectory The AD connection
Результат System

ADUser() публичный Метод

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
Результат System

MoveTo() публичный Метод

public MoveTo ( ) : void
Результат void

Save() публичный Метод

Save the local ADUser data to the remote server
public Save ( ) : void
Результат void

addToGroup() публичный Метод

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
Результат void

find() публичный Метод

public find ( ) : IEnumerable
Результат IEnumerable

removeFromGroup() публичный Метод

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
Результат void