diff --git a/source/java/org/alfresco/repo/security/authentication/AuthenticationServiceImpl.java b/source/java/org/alfresco/repo/security/authentication/AuthenticationServiceImpl.java index 3f28887048..ac8d737897 100644 --- a/source/java/org/alfresco/repo/security/authentication/AuthenticationServiceImpl.java +++ b/source/java/org/alfresco/repo/security/authentication/AuthenticationServiceImpl.java @@ -110,6 +110,8 @@ public class AuthenticationServiceImpl extends AbstractAuthenticationService { try { + // clear context - to avoid MT concurrency issue (causing domain mismatch) - see also 'validate' below + clearCurrentSecurityContext(); preAuthenticationCheck(userName); authenticationComponent.authenticate(userName, password); }