You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by cs...@apache.org on 2013/03/08 14:43:20 UTC
svn commit: r1454385 - in /karaf/branches/karaf-2.3.x: ./ itests/
manual/src/main/webapp/developers-guide/security-framework.conf
Author: cschneider
Date: Fri Mar 8 13:43:19 2013
New Revision: 1454385
URL: http://svn.apache.org/r1454385
Log:
KARAF-2226 Add typeconverter to config and a not for windows users
Modified:
karaf/branches/karaf-2.3.x/ (props changed)
karaf/branches/karaf-2.3.x/itests/ (props changed)
karaf/branches/karaf-2.3.x/manual/src/main/webapp/developers-guide/security-framework.conf
Propchange: karaf/branches/karaf-2.3.x/
------------------------------------------------------------------------------
Merged /karaf/trunk:r1454382
Propchange: karaf/branches/karaf-2.3.x/itests/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Mar 8 13:43:19 2013
@@ -1,12 +1,11 @@
-tests
-dependencies
target
*.iml
-*.iws
*.ipr
+*.iws
+.idea
.classpath
-.externalToolBuilders
.project
.settings
-eclipse-classes
-maven-eclipse.xml
+*.iml
+
+bin
Modified: karaf/branches/karaf-2.3.x/manual/src/main/webapp/developers-guide/security-framework.conf
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.3.x/manual/src/main/webapp/developers-guide/security-framework.conf?rev=1454385&r1=1454384&r2=1454385&view=diff
==============================================================================
--- karaf/branches/karaf-2.3.x/manual/src/main/webapp/developers-guide/security-framework.conf (original)
+++ karaf/branches/karaf-2.3.x/manual/src/main/webapp/developers-guide/security-framework.conf Fri Mar 8 13:43:19 2013
@@ -22,6 +22,7 @@ You can find the schema at the following
Here are two examples using this schema:
{pygmentize:xml}
+<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">
@@ -29,6 +30,10 @@ Here are two examples using this schema:
<!-- Bean to allow the $[karaf.base] property to be correctly resolved -->
<ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]"/>
+ <type-converters>
+ <bean class="org.apache.karaf.jaas.modules.properties.PropertiesConverter"/>
+ </type-converters>
+
<jaas:config name="myrealm">
<jaas:module className="org.apache.karaf.jaas.modules.properties.PropertiesLoginModule"
flags="required">
@@ -68,6 +73,7 @@ The {{rank}} attribute on the {{config}}
So if you want to override the default security configuration in Karaf (which is used by the ssh shell, web console and JMX layer), you need to deploy a JAAS configuration with the name {{name="karaf"}} and {{rank="1"}}.
{pygmentize:xml}
+<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.1.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">
@@ -75,6 +81,10 @@ So if you want to override the default s
<!-- Bean to allow the $[karaf.base] property to be correctly resolved -->
<ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]"/>
+ <type-converters>
+ <bean class="org.apache.karaf.jaas.modules.properties.PropertiesConverter"/>
+ </type-converters>
+
<jaas:config name="karaf" rank="1">
<jaas:module className="org.apache.karaf.jaas.modules.properties.PropertiesLoginModule"
flags="required">
@@ -122,6 +132,8 @@ user=password[,role][,role]...
</jaas:config>
{pygmentize}
+Note for windows users: Do not forget the typeconverter from the first config snippet. It makes sure that windows paths are handled correctly.
+
h3. OsgiConfigLoginModule
| LoginModule | org.apache.karaf.jaas.modules.osgi.OsgiConfigLoginModule |