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");
}
/**