Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: None
    • Labels:
      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>

        Activity

        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        It's a good idea Ioannis.

        In the same way, I created a LDAP JAAS login module for Karaf. I will commit it.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - It's a good idea Ioannis. In the same way, I created a LDAP JAAS login module for Karaf. I will commit it.
        Hide
        iocanel Ioannis Canellos added a comment -

        Adding _storage/build/karaf/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/jdbc
        Adding _storage/build/karaf/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/jdbc/JDBCLoginModule.java
        Transmitting file data .
        Committed revision 997236.

        Show
        iocanel Ioannis Canellos added a comment - Adding _storage/build/karaf/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/jdbc Adding _storage/build/karaf/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/jdbc/JDBCLoginModule.java Transmitting file data . Committed revision 997236.

          People

          • Assignee:
            iocanel Ioannis Canellos
            Reporter:
            iocanel Ioannis Canellos
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development