From edb2c94241fcafb0b095135103d7d0d00d367c5a Mon Sep 17 00:00:00 2001 From: Dave Ward Date: Thu, 16 Jul 2009 11:08:39 +0000 Subject: [PATCH] Merged V3.2 to HEAD 15219: ETHREEOH-2328: Alfresco authentication component could use wrong ACEGI AuthenticationManager if not at the start of the authentication chain - Moved authentication manager so that it is local to the alfrescoNtlm authentication subsystem git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15225 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../authentication-services-context.xml | 18 ------- config/alfresco/network-protocol-context.xml | 3 -- .../alfresco-authentication-context.xml | 48 ++++++++++++++++++- .../alfresco-authentication-context.xml | 48 ++++++++++++++++++- .../AbstractServerConfigurationBean.java | 20 +------- 5 files changed, 95 insertions(+), 42 deletions(-) diff --git a/config/alfresco/authentication-services-context.xml b/config/alfresco/authentication-services-context.xml index 1a305de31e..7bbf34151b 100644 --- a/config/alfresco/authentication-services-context.xml +++ b/config/alfresco/authentication-services-context.xml @@ -46,24 +46,10 @@ - - - - - - - - - - - - - - @@ -144,10 +130,6 @@ - - - - diff --git a/config/alfresco/network-protocol-context.xml b/config/alfresco/network-protocol-context.xml index b57067d0db..3dbb93a201 100644 --- a/config/alfresco/network-protocol-context.xml +++ b/config/alfresco/network-protocol-context.xml @@ -7,9 +7,6 @@ - - - diff --git a/config/alfresco/subsystems/Authentication/alfresco/alfresco-authentication-context.xml b/config/alfresco/subsystems/Authentication/alfresco/alfresco-authentication-context.xml index ac0d1843df..65c1708705 100644 --- a/config/alfresco/subsystems/Authentication/alfresco/alfresco-authentication-context.xml +++ b/config/alfresco/subsystems/Authentication/alfresco/alfresco-authentication-context.xml @@ -71,7 +71,7 @@ - + @@ -94,4 +94,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/config/alfresco/subsystems/Authentication/alfrescoNtlm/alfresco-authentication-context.xml b/config/alfresco/subsystems/Authentication/alfrescoNtlm/alfresco-authentication-context.xml index ac0d1843df..65c1708705 100644 --- a/config/alfresco/subsystems/Authentication/alfrescoNtlm/alfresco-authentication-context.xml +++ b/config/alfresco/subsystems/Authentication/alfrescoNtlm/alfresco-authentication-context.xml @@ -71,7 +71,7 @@ - + @@ -94,4 +94,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/source/java/org/alfresco/filesys/AbstractServerConfigurationBean.java b/source/java/org/alfresco/filesys/AbstractServerConfigurationBean.java index 61db86cbc1..92a30db78d 100644 --- a/source/java/org/alfresco/filesys/AbstractServerConfigurationBean.java +++ b/source/java/org/alfresco/filesys/AbstractServerConfigurationBean.java @@ -139,10 +139,6 @@ public abstract class AbstractServerConfigurationBean extends ServerConfiguratio protected static final int MaxSessionTimeout = 60 * 60; // 1 hour - // Authentication manager - - private AuthenticationManager m_authenticationManager; - // Disk interface to use for shared filesystems private ExtendedDiskInterface m_repoDiskInterface; @@ -205,16 +201,6 @@ public abstract class AbstractServerConfigurationBean extends ServerConfiguratio super( srvName); } - /** - * Set the authentication manager - * - * @param authenticationManager AuthenticationManager - */ - public void setAuthenticationManager(AuthenticationManager authenticationManager) - { - m_authenticationManager = authenticationManager; - } - /** * Set the authentication service * @@ -391,11 +377,7 @@ public abstract class AbstractServerConfigurationBean extends ServerConfiguratio { // Check that all required properties have been set - if (m_authenticationManager == null) - { - throw new AlfrescoRuntimeException("Property 'authenticationManager' not set"); - } - else if (m_authenticationComponent == null) + if (m_authenticationComponent == null) { throw new AlfrescoRuntimeException("Property 'authenticationComponent' not set"); }