Fix authentication context samples to use authenticationComponentBase

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8215 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2008-02-07 11:00:05 +00:00
parent 998dbc59f0
commit 04930c909f
4 changed files with 23 additions and 10 deletions

View File

@@ -148,7 +148,16 @@
</property>
</bean>
<bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.AuthenticationComponentImpl">
<!-- Parent bean for beans derived from AbstractAuthenticationComponent -->
<bean id="authenticationComponentBase" abstract="true">
<property name="tenantService">
<ref bean="tenantService"/>
</property>
</bean>
<bean id="authenticationComponent"
class="org.alfresco.repo.security.authentication.AuthenticationComponentImpl"
parent="authenticationComponentBase">
<property name="authenticationDao">
<ref bean="authenticationDao" />
</property>
@@ -158,9 +167,6 @@
<property name="allowGuestLogin">
<value>true</value>
</property>
<property name="tenantService">
<ref bean="tenantService"/>
</property>
</bean>
@@ -169,7 +175,9 @@
<!-- It should never go to the login screen so this is not required -->
<!--
<bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.SimpleAcceptOrRejectAllAuthenticationComponentImpl">
<bean id="authenticationComponent"
class="org.alfresco.repo.security.authentication.SimpleAcceptOrRejectAllAuthenticationComponentImpl"
parent="authenticationComponentBase">
<property name="accept">
<value>true</value>
</property>

View File

@@ -7,7 +7,8 @@
<!-- Jass authentication - most of the config goes somewhere else -->
<bean id="authenticationComponent"
class="org.alfresco.repo.security.authentication.jaas.JAASAuthenticationComponent">
class="org.alfresco.repo.security.authentication.jaas.JAASAuthenticationComponent"
parent="authenticationComponentBase">
<property name="realm">
<value>DEFAULT.REALM</value>
</property>

View File

@@ -33,7 +33,9 @@
-->
<bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl">
<bean id="authenticationComponent"
class="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl"
parent="authenticationComponentBase">
<property name="LDAPInitialDirContextFactory">
<ref bean="ldapInitialDirContextFactory"/>
</property>

View File

@@ -17,7 +17,9 @@
<!-- servers comma delimted list of server addresses or -->
<!-- names -->
<bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.ntlm.NTLMAuthenticationComponentImpl">
<bean id="authenticationComponent"
class="org.alfresco.repo.security.authentication.ntlm.NTLMAuthenticationComponentImpl"
parent="authenticationComponentBase">
<property name="useLocalServer">
<value>true</value>
</property>