public class GenericDirectorySynchronizer extends AbstractLdapSynchronizer
connection, contextSettings, errorCount, fullSyncNeeded, GROUP_SEARCH_PAGE_SIZE, groupSettings, ldapSyncListener, logger, maxErrors, noGroupsSynchronized, noUsersSynchronized, sqlLogger, synchronizerSettings, syncNeeded, syncParameters, USER_SEARCH_PAGE_SIZE, userSettings| Constructor and Description |
|---|
GenericDirectorySynchronizer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
determineSynchronizationNeed()
Determines whether synchronization is needed or not.
|
protected java.lang.String |
getGroupDNAttributeName()
Returns the attribute used for identifying the distinguished
name of a group object.In Novell "dn" is for distinguishedname.
|
protected java.lang.String |
getGroupObjectClass()
Returns the object class used to indentify group objects
in Novell eDirectory.
|
protected java.lang.String |
getMemberUserAccountName(java.lang.String memberDN)
Returns the user or group member account name, for the given
distinguished name of the user or group.
|
protected java.lang.String |
getUserDNAttributeName()
Returns the attribute used for identifying the distinguished
name of a user object.In Novell "dn" is for distinguishedname.
|
protected java.lang.String |
getUserObjectClass()
Returns the object class used to indentify user objects
in Novell eDirectory.
|
protected void |
initSync()
Initialize sync parameters.
|
protected java.util.Set |
retrieveAllGroupMembers(java.lang.String groupDN)
Retrieves all the group members of the given group distinguished
name.
|
protected void |
retrieveGroupMembers(java.lang.String groupDN,
java.util.Set memberUsers,
java.util.Set memberGroups)
Retrieves group members and fills the users and groups that are
members of the given group into the passed in sets.
|
protected void |
syncGroups()
Performs LDAP query against the LDAP Directory server and retrieves
the results .
|
protected void |
syncUsers()
Performs LDAP query against the LDAP Directory server and retrieves
the results page by page and processes each page result.
|
buildURL, closeContext, commitGroupChanges, commitGroupChanges, commitUserChanges, commitUserChanges, createDefaultLdapContext, createSearchLdapContext, getDefaultLdapContextEnvironment, getGroupAttributes, getGroupMemberAsGroupAttribute, getGroupMemberAsUserAttribute, getGroupMembersAttribute, getGroupSearchBase, getGroupSearchControls, getGroupSearchFilter, getGroupSearchPageSize, getGroupSearchScope, getLDAPSyncListener, getSearchLdapContextEnvironment, getSynchronizerSettings, getSyncParameters, getUserAttributes, getUserSearchBase, getUserSearchControls, getUserSearchFilter, getUserSearchPageSize, getUserSearchScope, init, isFullSyncNeeded, isSyncNeeded, performSync, setFullSyncNeeded, setLDAPSyncListener, setOwner, setSyncNeeded, syncGroupMembers, updateSyncParametersprotected void initSync()
throws LdapSyncException
initSync in class AbstractLdapSynchronizerLdapSyncException - if fails to initializeprotected java.util.Set retrieveAllGroupMembers(java.lang.String groupDN)
throws LdapSyncException
retrieveAllGroupMembers in class AbstractLdapSynchronizergroupDN - group distinguished name for which users
need to be retrieved.LdapSyncException - if fails to retrieve members.AbstractLdapSynchronizer.retrieveAllGroupMembers(java.lang.String)protected void retrieveGroupMembers(java.lang.String groupDN,
java.util.Set memberUsers,
java.util.Set memberGroups)
throws LdapSyncException
groupDN - distinguished name of the group for which members
need to be retrieved.memberUsers - returns the set of member users of the group.memberGroups - returns the set of member groups of the group.LdapSyncException - if fails to retrieve members of the group.protected java.lang.String getMemberUserAccountName(java.lang.String memberDN)
throws LdapSyncException
memberDN - user or group distinguished nameLdapSyncException - if fails to retrieve the account name.protected void determineSynchronizationNeed()
throws LdapSyncException
determineSynchronizationNeed in class AbstractLdapSynchronizerLdapSyncException - if fails to determine the needprotected java.lang.String getUserObjectClass()
getUserObjectClass in class AbstractLdapSynchronizerAbstractLdapSynchronizer.getUserObjectClass()protected java.lang.String getGroupObjectClass()
getGroupObjectClass in class AbstractLdapSynchronizerAbstractLdapSynchronizer.getGroupObjectClass()protected java.lang.String getUserDNAttributeName()
getUserDNAttributeName in class AbstractLdapSynchronizerAbstractLdapSynchronizer.getUserDNAttributeName()protected java.lang.String getGroupDNAttributeName()
getGroupDNAttributeName in class AbstractLdapSynchronizerAbstractLdapSynchronizer.getGroupDNAttributeName()protected void syncGroups()
throws LdapSyncException
syncGroups in class AbstractLdapSynchronizerLdapSyncExceptionprotected void syncUsers()
throws LdapSyncException
syncUsers in class AbstractLdapSynchronizerLdapSyncException