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

@@ -147,8 +147,17 @@
</props> </props>
</property> </property>
</bean> </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"> <property name="authenticationDao">
<ref bean="authenticationDao" /> <ref bean="authenticationDao" />
</property> </property>
@@ -157,9 +166,6 @@
</property> </property>
<property name="allowGuestLogin"> <property name="allowGuestLogin">
<value>true</value> <value>true</value>
</property>
<property name="tenantService">
<ref bean="tenantService"/>
</property> </property>
</bean> </bean>
@@ -169,7 +175,9 @@
<!-- It should never go to the login screen so this is not required --> <!-- 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"> <property name="accept">
<value>true</value> <value>true</value>
</property> </property>

View File

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

View File

@@ -17,7 +17,9 @@
<!-- servers comma delimted list of server addresses or --> <!-- servers comma delimted list of server addresses or -->
<!-- names --> <!-- 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"> <property name="useLocalServer">
<value>true</value> <value>true</value>
</property> </property>