From 7ff8eaef2896fb3e49cc164aa521599820cb49cf Mon Sep 17 00:00:00 2001 From: Britt Park Date: Fri, 1 Dec 2006 01:40:12 +0000 Subject: [PATCH] Export AuthenticationService via RMI, in preparation for adding over the wire authentication for CLTs. Until we use SSL transport for RMI this is subject to authentication password and authentication ticket snooping, but that can be fixed easily later. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4480 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/avm-clt-context.xml | 12 +++++++++++ .../extension/rmi-services-context.xml | 21 +++++++++++++++++++ .../org/alfresco/repo/avm/clt/AVMCltBase.java | 7 +++++++ 3 files changed, 40 insertions(+) create mode 100644 config/alfresco/extension/rmi-services-context.xml diff --git a/config/alfresco/avm-clt-context.xml b/config/alfresco/avm-clt-context.xml index 130b1bf2b9..5cc4a177c7 100644 --- a/config/alfresco/avm-clt-context.xml +++ b/config/alfresco/avm-clt-context.xml @@ -26,4 +26,16 @@ true + + + + rmi://localhost:1313/authentication + + + org.alfresco.service.cmr.security.AuthenticationService + + + true + + diff --git a/config/alfresco/extension/rmi-services-context.xml b/config/alfresco/extension/rmi-services-context.xml new file mode 100644 index 0000000000..6c3d121630 --- /dev/null +++ b/config/alfresco/extension/rmi-services-context.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + org.alfresco.service.cmr.security.AuthenticationService + + + authentication + + + ${avm.remote.port} + + + + diff --git a/source/java/org/alfresco/repo/avm/clt/AVMCltBase.java b/source/java/org/alfresco/repo/avm/clt/AVMCltBase.java index 4beb4f030d..3a0577af48 100644 --- a/source/java/org/alfresco/repo/avm/clt/AVMCltBase.java +++ b/source/java/org/alfresco/repo/avm/clt/AVMCltBase.java @@ -10,6 +10,7 @@ import java.util.Map; import org.alfresco.repo.avm.AVMRemote; import org.alfresco.service.cmr.avmsync.AVMSyncService; +import org.alfresco.service.cmr.security.AuthenticationService; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; @@ -34,6 +35,11 @@ public abstract class AVMCltBase */ protected ConfigurableApplicationContext fContext; + /** + * The Authentication Service. + */ + protected AuthenticationService fAuthenticationService; + /** * Construct a new one. This takes care of instantiating * the application context and grabs references to the @@ -45,6 +51,7 @@ public abstract class AVMCltBase fContext = new ClassPathXmlApplicationContext("alfresco/avm-clt-context.xml"); fAVMRemote = (AVMRemote)fContext.getBean("avmRemote"); fAVMSyncService = (AVMSyncService)fContext.getBean("avmSyncService"); + fAuthenticationService = (AuthenticationService)fContext.getBean("authenticationService"); } /**