From 925ba4d00d69354210f053decbb299b4ae0f7942 Mon Sep 17 00:00:00 2001 From: Dave Ward Date: Fri, 16 Dec 2011 13:11:31 +0000 Subject: [PATCH] ALF-10997: User ID case sensitivity issues with internal NTLM authentication - Fix by Pavel git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32811 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../repo/webdav/auth/BaseNTLMAuthenticationFilter.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/java/org/alfresco/repo/webdav/auth/BaseNTLMAuthenticationFilter.java b/source/java/org/alfresco/repo/webdav/auth/BaseNTLMAuthenticationFilter.java index 60849084ea..3532bcebc8 100644 --- a/source/java/org/alfresco/repo/webdav/auth/BaseNTLMAuthenticationFilter.java +++ b/source/java/org/alfresco/repo/webdav/auth/BaseNTLMAuthenticationFilter.java @@ -446,6 +446,14 @@ public abstract class BaseNTLMAuthenticationFilter extends BaseSSOAuthentication String workstation = type3Msg.getWorkstation(); String domain = type3Msg.getDomain(); + // ALF-10997 fix, normalize the userName + String normalized = personService.getUserIdentifier(userName); + + if (normalized != null) + { + userName = normalized; + } + boolean authenticated = false; // Check if we are using cached details for the authentication