Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
I think it would be nice if karaf provided a JAAS Database Login Module.
That module could have the following properties:
- Data Source (required) passed as a filter (e.g. osgi.jndi.service.name).
- Password Retrieval Query (optional)
- Role Retrieval Query (optional)
- Digest Algorithm (optional)
Example configuration:
<jaas:config name="somerealm">
<jaas:module className="org.apache.karaf.jaas.modules.database.DatabaseLoginModule" flags="required">
datasource = jdbc/somedb
passwordQuery = "SELECT PASSWORDD FROM USERS WHERE USERNAME=?"
roleQuery = "SELECT ROLE FROM ROLES WHERE USERNAME=?"
diggest = MD5
</jaas:module>
</jaas:config>