]> source.dussan.org Git - archiva.git/blob
ba7d70010f1dbe552c01d72f6deba5ebfca291c6
[archiva.git] /
1 <?xml version="1.0"?>
2
3 <!--
4   ~ Licensed to the Apache Software Foundation (ASF) under one
5   ~ or more contributor license agreements.  See the NOTICE file
6   ~ distributed with this work for additional information
7   ~ regarding copyright ownership.  The ASF licenses this file
8   ~ to you under the Apache License, Version 2.0 (the
9   ~ "License"); you may not use this file except in compliance
10   ~ with the License.  You may obtain a copy of the License at
11   ~
12   ~   http://www.apache.org/licenses/LICENSE-2.0
13   ~
14   ~ Unless required by applicable law or agreed to in writing,
15   ~ software distributed under the License is distributed on an
16   ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   ~ KIND, either express or implied.  See the License for the
18   ~ specific language governing permissions and limitations
19   ~ under the License.
20   -->
21 <beans xmlns="http://www.springframework.org/schema/beans"
22        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23        xmlns:context="http://www.springframework.org/schema/context"
24        xsi:schemaLocation="http://www.springframework.org/schema/beans
25            http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
26            http://www.springframework.org/schema/context 
27            http://www.springframework.org/schema/context/spring-context-3.0.xsd">
28
29   <context:property-placeholder system-properties-mode="OVERRIDE"/>
30
31   <bean name="apacheDS#test" class="org.apache.archiva.redback.components.apacheds.DefaultApacheDs"
32       scope="prototype">
33     <property name="basedir" value="${basedir}/target/apacheds"/>
34     <property name="port" value="${ldapPort}"/>
35     <property name="enableNetworking" value="true"/>
36     <property name="password" value="secret"/>
37   </bean>
38
39   <bean name="ldapConnectionFactory#configurable" class="org.apache.archiva.redback.common.ldap.connection.ConfigurableLdapConnectionFactory">
40     <property name="hostname" value="localhost"/>
41     <property name="port" value="${ldapPort}"/>
42     <property name="baseDn" value="dc=redback,dc=plexus,dc=codehaus,dc=org"/>
43     <property name="contextFactory" value="com.sun.jndi.ldap.LdapCtxFactory"/>
44     <property name="password" value="secret"/>
45     <property name="bindDn" value="uid=admin,ou=system"/>
46     <property name="userConf" ref="userConfiguration"/>
47   </bean>
48
49   <bean name="userMapper#ldap" class="org.apache.archiva.redback.common.ldap.LdapUserMapper">
50     <property name="emailAttribute" value="mail"/>
51     <property name="fullNameAttribute" value="givenName"/>
52     <property name="passwordAttribute" value="userPassword"/>
53     <property name="userIdAttribute" value="cn"/>
54     <property name="userBaseDn" value="dc=redback,dc=plexus,dc=codehaus,dc=org"/>
55     <property name="userObjectClass" value="inetOrgPerson"/>
56     <property name="userConf" ref="userConfiguration"/>
57   </bean>
58
59   <bean name="userConfiguration" class="org.apache.archiva.redback.configuration.DefaultUserConfiguration"
60       init-method="initialize">
61     <property name="configs">
62       <list>
63         <value>src/test/resources/security.properties</value>
64       </list>
65     </property>
66
67     <property name="registry" ref="registry#commons-configuration"/>
68
69   </bean>
70
71   <bean name="registry#commons-configuration" class="org.apache.archiva.redback.components.registry.commons.CommonsConfigurationRegistry"
72       init-method="initialize">
73
74   </bean>
75
76 </beans>