]> git.argeo.org Git - lgpl/argeo-commons.git/blob - security/modules/org.argeo.security.dao.ldap/META-INF/spring/ldap-jcr.xml
d8a78c1b5715fb168613c91546fe3788abded782
[lgpl/argeo-commons.git] / security / modules / org.argeo.security.dao.ldap / META-INF / spring / ldap-jcr.xml
1 <beans xmlns="http://www.springframework.org/schema/beans"
2 xmlns:security="http://www.springframework.org/schema/security"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
4 xsi:schemaLocation="http://www.springframework.org/schema/beans
5 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
6 http://www.springframework.org/schema/security
7 http://www.springframework.org/schema/security/spring-security-2.0.4.xsd
8 http://www.springframework.org/schema/util
9 http://www.springframework.org/schema/util/spring-util-2.5.xsd">
10
11 <bean id="jcrUserDetailsContextMapper" class="org.argeo.security.ldap.jcr.JcrUserDetailsContextMapper">
12 <property name="homeBasePath" value="/home" />
13 <property name="usernameAttribute" value="${argeo.ldap.usernameAttribute}" />
14 <property name="passwordAttribute" value="${argeo.ldap.passwordAttribute}" />
15 <property name="userClasses">
16 <list>
17 <value>${argeo.ldap.userClass}</value>
18 </list>
19 </property>
20 <property name="systemExecutor" ref="systemExecutionService" />
21 <property name="passwordEncoder" ref="passwordEncoder" />
22 <property name="session" ref="nodeSession" />
23 <property name="propertyToAttributes">
24 <map>
25 <entry value="cn">
26 <key>
27 <util:constant static-field="javax.jcr.Property.JCR_TITLE" />
28 </key>
29 </entry>
30 <entry value="description">
31 <key>
32 <util:constant static-field="javax.jcr.Property.JCR_DESCRIPTION" />
33 </key>
34 </entry>
35 <entry value="givenName">
36 <key>
37 <util:constant static-field="org.argeo.jcr.ArgeoNames.ARGEO_FIRST_NAME" />
38 </key>
39 </entry>
40 <entry value="sn">
41 <key>
42 <util:constant static-field="org.argeo.jcr.ArgeoNames.ARGEO_LAST_NAME" />
43 </key>
44 </entry>
45 <entry value="mail">
46 <key>
47 <util:constant static-field="org.argeo.jcr.ArgeoNames.ARGEO_PRIMARY_EMAIL" />
48 </key>
49 </entry>
50 <entry value="o">
51 <key>
52 <util:constant
53 static-field="org.argeo.jcr.ArgeoNames.ARGEO_PRIMARY_ORGANIZATION" />
54 </key>
55 </entry>
56 </map>
57 </property>
58 </bean>
59
60 <bean id="nodeSession" class="org.argeo.security.jcr.SecureThreadBoundSession">
61 <property name="repositories" ref="repositories" />
62 </bean>
63
64 </beans>