C# Class SenseNet.DirectoryServices.SyncAD2Portal

Datei anzeigen Open project: maxpavlov/FlexNet Class Usage Examples

Public Methods

Method Description
GetSyncInfo ( string ldapPath ) : SyncInfo

Gets portal info for given LDAP path. If resulting SyncInfo object's SyncTreeFound is false, no other properties are filled.

SyncAD2Portal ( ) : System
SyncFromAD ( ) : void

Syncs all objects of all configured sync trees from Active Directory(ies).

SyncObjectFromAD ( string ldapPath ) : void

Syncs a single object from Active directory according to configuration.

Private Methods

Method Description
ADObjectPathSynced ( System.Guid guid, System.DirectoryServices.SearchResultCollection ADObjects, Node node ) : bool
CreateNewPortalContainer ( System.DirectoryServices.DirectoryEntry entry, string parentPath, System.Guid guid, SyncTree syncTree ) : void
CreateNewPortalDomain ( System.DirectoryServices.DirectoryEntry entry, string parentPath, System.Guid guid, SyncTree syncTree ) : void
CreateNewPortalFolder ( System.DirectoryServices.DirectoryEntry entry, string parentPath, System.Guid guid, SyncTree syncTree ) : void
CreateNewPortalGroup ( System.DirectoryServices.DirectoryEntry entry, string parentPath, System.Guid guid, SyncTree syncTree ) : void
CreateNewPortalOrgUnit ( System.DirectoryServices.DirectoryEntry entry, string parentPath, System.Guid guid, SyncTree syncTree ) : void
CreateNewPortalUser ( System.DirectoryServices.DirectoryEntry entry, string parentPath, System.Guid guid, SyncTree syncTree ) : void
DeleteObjectsFromAD ( SyncTree syncTree, ADObjectType objType, System.DirectoryServices.SearchResultCollection allADObjects, Action DeletePortalObject ) : void
DeletePortalContainer ( Node node ) : void
DeletePortalContainers ( SyncTree syncTree ) : void
DeletePortalGroup ( Node node ) : void
DeletePortalGroups ( SyncTree syncTree ) : void
DeletePortalUser ( Node node ) : void
DeletePortalUsers ( SyncTree syncTree ) : void
EnsurePortalPath ( SyncTree syncTree, string ADPath, string portalParentPath ) : void
GetADDomainName ( DirectoryEntry entry ) : string
GetADGroupMembers ( DirectoryEntry group, SyncTree syncTree ) : ADGroupMember>.Dictionary
GetAllPortalObjects ( ADObjectType objType ) : int>.Dictionary
GetAllPortalObjects ( ADObjectType objType, SyncTree syncTree ) : IEnumerable
GetSyncTreeForObject ( string objectPath ) : SyncTree
SyncContainersFromAD ( SyncTree syncTree ) : void
SyncGroupsFromAD ( SyncTree syncTree ) : void
SyncObjectsFromAD ( SyncTree syncTree, ADObjectType objType, SearchResultCollection allADObjects, Action CreateNewObject, Action UpdateProperties ) : void
SyncOneADObject ( SearchResult result, DirectoryEntry ADentry, Guid guid, ADObjectType objType, string nodePortalParentPath, Action CreateNewObject, Action UpdateProperties, SyncTree syncTree ) : void
SyncSingleObjectFromAD ( string ldapPath ) : void
SyncUsersFromAD ( SyncTree syncTree ) : void
UpdatePortalContainerProperties ( DirectoryEntry entry, Node node, SyncTree syncTree ) : void
UpdatePortalDomainProperties ( DirectoryEntry entry, Node node, SyncTree syncTree ) : void
UpdatePortalFolderProperties ( DirectoryEntry entry, Node node, SyncTree syncTree ) : void
UpdatePortalGroupProperties ( DirectoryEntry entry, Node node, SyncTree syncTree ) : void
UpdatePortalOrgUnitProperties ( DirectoryEntry entry, Node node, SyncTree syncTree ) : void
UpdatePortalUserProperties ( DirectoryEntry entry, Node node, SyncTree syncTree ) : void

Method Details

GetSyncInfo() public method

Gets portal info for given LDAP path. If resulting SyncInfo object's SyncTreeFound is false, no other properties are filled.
public GetSyncInfo ( string ldapPath ) : SyncInfo
ldapPath string The LDAP path of the object, ie. CN=MyGroup,OU=MyOrg,DC=Nativ,DC=local
return SyncInfo

SyncAD2Portal() public method

public SyncAD2Portal ( ) : System
return System

SyncFromAD() public method

Syncs all objects of all configured sync trees from Active Directory(ies).
public SyncFromAD ( ) : void
return void

SyncObjectFromAD() public method

Syncs a single object from Active directory according to configuration.
public SyncObjectFromAD ( string ldapPath ) : void
ldapPath string The LDAP path of the object, ie. CN=MyGroup,OU=MyOrg,DC=Nativ,DC=local
return void