]> git.argeo.org Git - lgpl/argeo-commons.git/blob - security/modules/org.argeo.security.dao.ldap/META-INF/spring/security-ldap-services.xml
Remove PDE source profile
[lgpl/argeo-commons.git] / security / modules / org.argeo.security.dao.ldap / META-INF / spring / security-ldap-services.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="
5 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
6
7 <bean id="systemExecutionService" class="org.argeo.security.core.KeyBasedSystemExecutionService">
8 <property name="authenticationManager" ref="authenticationManager" />
9 <property name="systemAuthenticationKey" value="${argeo.security.systemKey}" />
10 </bean>
11
12 <bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
13 <property name="providers">
14 <list>
15 <ref bean="anonymousAuthenticationProvider" />
16 <ref bean="authByAdapterProvider" />
17 <ref bean="ldapAuthenticationProvider" />
18 </list>
19 </property>
20 </bean>
21
22 <!-- Authentication provider -->
23 <bean id="authByAdapterProvider"
24 class="org.springframework.security.adapters.AuthByAdapterProvider">
25 <description><![CDATA[System authentication]]></description>
26 <property name="key" value="${argeo.security.systemKey}" />
27 </bean>
28
29 <bean id="anonymousAuthenticationProvider"
30 class="org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider">
31 <description><![CDATA[Anonymous authentication]]></description>
32 <property name="key" value="${argeo.security.systemKey}" />
33 </bean>
34
35 <!-- Internal authentication, used by during the general authentication
36 initialization himself, in order to prevent the following dependency cycle:
37 Repository.login() <= AuthenticationManager <= LdapAuthenticationProvider
38 <= Repository.login() in init() -->
39 <bean id="internalAuthenticationManager" class="org.springframework.security.providers.ProviderManager">
40 <property name="providers">
41 <list>
42 <ref bean="authByAdapterProvider" />
43 </list>
44 </property>
45 </bean>
46
47 <bean
48 class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
49 <description><![CDATA[Executes initialization with a system authentication]]></description>
50 <property name="authenticationManager" ref="internalAuthenticationManager" />
51 </bean>
52 </beans>