mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
17002: Merged V3.2 to V3.2 14187: (record-only) Fix for ETHREEOH-2023: LDAP import must lower case the local name of the association to person. 14941: Merged V2.2 to V3.1 14830: Fix for ETWOTWO-389: Alfresco will not fix up all the permissions if the UID is changed 14849: Build Fix: Remove the constraint to avoid the creation of duplicate users (it stops permission assignment before user creation) 14867: Build Fix: Disable tests for concurrent creation of groups and people (it leaves an odd group around and is not currently used) 14880: More for ETWOTWO-389: restrict fix ups for uid/gid to case changes only. Other changes are rejected. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17013 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -270,6 +270,12 @@ public abstract class AbstractAuthenticationComponent implements AuthenticationC
|
||||
logger.debug("Setting the current user to \"" + userName + '"');
|
||||
}
|
||||
ud = getUserDetails(userName);
|
||||
if(!userName.equals(ud.getUsername()))
|
||||
{
|
||||
ud = new User(userName, ud.getPassword(), ud.isEnabled(), ud.isAccountNonExpired(),
|
||||
ud.isCredentialsNonExpired(), ud.isAccountNonLocked(), ud.getAuthorities());
|
||||
}
|
||||
|
||||
}
|
||||
return setUserDetails(ud);
|
||||
}
|
||||
|
Reference in New Issue
Block a user