C# 클래스 ADLib.ADUser

Represents an AD User object, wraps an AD UserPrincipal
상속: ADObject
파일 보기 프로젝트 열기: bolenc/Active-Directory-Examples 1 사용 예제들

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