Author: jbonofre
Date: Thu Jun 14 09:55:30 2012
New Revision: 1350170
URL: http://svn.apache.org/viewvc?rev=1350170&view=rev
Log:
[KARAF-1394] Upgrade to JAAS documentation
Modified:
karaf/branches/karaf-2.3.x/manual/src/main/webapp/developers-guide/security-framework.conf
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=1350170&r1=1350169&r2=1350170&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
Thu Jun 14 09:55:30 2012
@@ -36,8 +36,15 @@ Here are two examples using this schema:
</jaas:module>
</jaas:config>
+ <service interface="org.apache.karaf.jaas.modules.BackingEngineFactory">
+ <bean
class="org.apache.karaf.jaas.modules.properties.PropertiesBackingEngineFactory"/>
+ </service>
+
</blueprint>
{pygmentize}
+
+NB: Don't forge to expose the BackingEngine as an OSGi service.
+
{pygmentize:xml}
<jaas:keystore xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.1.0"
name="ks"
@@ -92,6 +99,9 @@ Karaf comes with several login modules t
h3. PropertiesLoginModule
+| LoginModule |
org.apache.karaf.jaas.modules.properties.PropertiesLoginModule |
+| BackingEngineFactory |
org.apache.karaf.jaas.modules.properties.PropertiesBackingEngineFactory |
+
This login module is the one configured by default. It uses a properties text
file to load the users, passwords and roles.
|| Name || Description |
@@ -114,6 +124,9 @@ user=password[,role][,role]...
h3. OsgiConfigLoginModule
+| LoginModule |
org.apache.karaf.jaas.modules.osgi.OsgiConfigLoginModule |
+| BackingEngineFactory |
|
+
The OsgiConfigLoginModule uses the OSGi ConfigurationAdmin service to provide
the users, passwords and roles.
|| Name || Description |
@@ -123,6 +136,9 @@ The format of the configuration is the s
h3. JDBCLoginModule
+| LoginModule | org.apache.karaf.jaas.modules.jdbc.JDBCLoginModule
|
+| BackingEngineFactory |
org.apache.karaf.jaas.modules.jdbc.JDBCBackingEngineFactory |
+
The JDBCLoginModule uses a database to load the users, passwords and roles
from a provided data source _(normal or XA)_. The data source and the queries
for password and role retrieval are configurable using the following parameters.
|| Name || Description ||
@@ -163,6 +179,9 @@ To use an JNDI name, the prefix jndi: ne
h3. LDAPLoginModule
+| LoginModule | org.apache.karaf.jaas.modules.ldap.LDAPLoginModule
|
+| BackingEngineFactory |
|
+
The LDAPLoginModule uses LDAP to load the users and roles and bind the users
on the LDAP to check passwords.
The LDAPLoginModule supports the following parameters: