]> git.argeo.org Git - lgpl/argeo-commons.git/blob - security/modules/org.argeo.security.dao.ldap/META-INF/spring/jcr.xml
Integrate LDAP and JCR
[lgpl/argeo-commons.git] / security / modules / org.argeo.security.dao.ldap / META-INF / spring / 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
12 <bean id="jcrUserDetailsContextMapper" class="org.argeo.security.ldap.jcr.JcrUserDetailsContextMapper">
13 <property name="systemExecutionService" ref="systemExecutionService" />
14 <property name="propertyToAttributes">
15 <map>
16 <entry value="cn">
17 <key>
18 <util:constant static-field="org.argeo.jcr.ArgeoNames.ARGEO_DISPLAY_NAME" />
19 </key>
20 </entry>
21 <entry value="givenName">
22 <key>
23 <util:constant static-field="org.argeo.jcr.ArgeoNames.ARGEO_FIRST_NAME" />
24 </key>
25 </entry>
26 <entry value="sn">
27 <key>
28 <util:constant static-field="org.argeo.jcr.ArgeoNames.ARGEO_LAST_NAME" />
29 </key>
30 </entry>
31 <entry value="mail">
32 <key>
33 <util:constant static-field="org.argeo.jcr.ArgeoNames.ARGEO_PRIMARY_EMAIL" />
34 </key>
35 </entry>
36 <entry value="o">
37 <key>
38 <util:constant
39 static-field="org.argeo.jcr.ArgeoNames.ARGEO_PRIMARY_ORGANIZATION" />
40 </key>
41 </entry>
42 </map>
43 </property>
44
45 </bean>
46 </beans>