blob: a989da839e178a33817f768be12f7a7a331b9050 [file] [log] [blame]
Guillaume Nodet05fac962009-04-27 10:01:58 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3
4 Licensed to the Apache Software Foundation (ASF) under one or more
5 contributor license agreements. See the NOTICE file distributed with
6 this work for additional information regarding copyright ownership.
7 The ASF licenses this file to You under the Apache License, Version 2.0
8 (the "License"); you may not use this file except in compliance with
9 the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18
19-->
20<beans xmlns="http://www.springframework.org/schema/beans"
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xmlns:osgi="http://www.springframework.org/schema/osgi"
23 xmlns:jaas="http://servicemix.apache.org/jaas"
24 xsi:schemaLocation="
25 http://www.springframework.org/schema/beans
26 http://www.springframework.org/schema/beans/spring-beans.xsd
27 http://www.springframework.org/schema/osgi
28 http://www.springframework.org/schema/osgi/spring-osgi.xsd
29 http://servicemix.apache.org/jaas
30 http://servicemix.apache.org/schema/servicemix-jaas.xsd">
31
32 <!--
33 - The following beans define an alternate realm which uses the OSGi Configuration Admin service
34 - to obtain passwords. However, this realm is not really secure as there is no access restriction
35 - on this service, which means any bundle could access all the passwords.
36 -->
37 <!--
Gert Vanthienenf54a8392009-05-02 19:57:13 +000038 <bean id="configAdminHolder" class="org.apache.felix.karaf.jaas.modules.osgi.ConfigAdminHolder">
Guillaume Nodet05fac962009-04-27 10:01:58 +000039 <property name="service" ref="configAdmin" />
40 </bean>
41
42 <osgi:reference id="configAdmin" interface="org.osgi.service.cm.ConfigurationAdmin" />
43
Guillaume Nodet65e973f2009-05-04 07:07:22 +000044 <jaas:config id="karaf">
Gert Vanthienenf54a8392009-05-02 19:57:13 +000045 <jaas:module className="org.apache.felix.karaf.jaas.modules.osgi.OsgiConfigLoginModule" flags="required">
Guillaume Nodet05fac962009-04-27 10:01:58 +000046 pid = org.apache.servicemix.users
47 </jaas:module>
48 </jaas:config>
49 -->
50
Guillaume Nodet65e973f2009-05-04 07:07:22 +000051 <!-- Bean to allow the ${servicemix.home} property to be correctly resolved -->
Guillaume Nodet05fac962009-04-27 10:01:58 +000052 <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
53
Guillaume Nodet65e973f2009-05-04 07:07:22 +000054 <jaas:config id="karaf">
Gert Vanthienenf54a8392009-05-02 19:57:13 +000055 <jaas:module className="org.apache.felix.karaf.jaas.modules.properties.PropertiesLoginModule" flags="required">
Guillaume Nodetf63af2f2009-05-05 17:12:16 +000056 users = ${karaf.base}/etc/users.properties
Guillaume Nodet05fac962009-04-27 10:01:58 +000057 </jaas:module>
58 </jaas:config>
59
Gert Vanthienenf54a8392009-05-02 19:57:13 +000060</beans>