ALF-3604: Correct case-sensitivity issues in LDAP sync

- User names are now brought in line with the case of the LDAP directory during sync (in case the UID attribute is case sensitive)
- User names are now compared according to Alfresco's case sensitivity setting
- Group name comparisions are still case sensitive
- Added unit test to ensure correct behaviour


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20873 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Dave Ward
2010-06-30 13:03:27 +00:00
parent a2e13ba30f
commit 3238ca154a
6 changed files with 363 additions and 179 deletions

View File

@@ -58,14 +58,20 @@ public interface UserRegistry
public Collection<NodeDescription> getGroups(Date modifiedSince);
/**
* Retrieves the complete set of known users and groups from the user registry and removes them from the set of
* candidate local authorities to be deleted.
* Gets the names of all persons in the registry. Used to detect local persons to be deleted. Note that the
* treatment of these names will depend on Alfresco's username case-sensitivity setting.
*
* @param candidateAuthoritiesForDeletion
* the candidate authorities for deletion
* @return the person names
*/
public void processDeletions(final Set<String> candidateAuthoritiesForDeletion);
public Collection<String> getPersonNames();
/**
* Gets the names of all groups in the registry. Used to detect local groups to be deleted.
*
* @return the person names
*/
public Collection<String> getGroupNames();
/**
* Gets the set of property names that are auto-mapped by this user registry. These should remain read-only for this
* registry's users in the UI.