diff --git a/source/java/org/alfresco/web/app/servlet/NTLMAuthenticationFilter.java b/source/java/org/alfresco/web/app/servlet/NTLMAuthenticationFilter.java index f529c73c10..47d1529d46 100644 --- a/source/java/org/alfresco/web/app/servlet/NTLMAuthenticationFilter.java +++ b/source/java/org/alfresco/web/app/servlet/NTLMAuthenticationFilter.java @@ -751,16 +751,13 @@ public class NTLMAuthenticationFilter extends AbstractAuthenticationFilter imple try { tx.begin(); - - // Get user details for the authenticated user - m_authComponent.setCurrentUser(userName.toLowerCase()); - - // The user name used may be a different case to the NTLM supplied user name, read the current - // user and use that name - userName = m_authComponent.getCurrentUserName(); // Setup User object and Home space ID etc. NodeRef personNodeRef = m_personService.getPerson(userName); + + // User name should match the uid in the person entry found + userName = (String) m_nodeService.getProperty(personNodeRef, ContentModel.PROP_USERNAME); + m_authComponent.setCurrentUser(userName); String currentTicket = m_authService.getCurrentTicket(); user = new User(userName, currentTicket, personNodeRef); diff --git a/source/web/jsp/users/change-my-password.jsp b/source/web/jsp/users/change-my-password.jsp index dd2a470e92..e3eb107a2a 100644 --- a/source/web/jsp/users/change-my-password.jsp +++ b/source/web/jsp/users/change-my-password.jsp @@ -137,21 +137,21 @@