Karaf
  1. Karaf
  2. KARAF-1394

Custom login modules not seen with Equinox

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.6
    • Fix Version/s: 2.2.8, 2.3.0, 3.0.0
    • Component/s: karaf-core
    • Labels:
      None

      Description

      An user define a "custom" login module, for instance, in the blueprint descriptor of its own bundle:

      <jaas:config name="karaf " rank="1">
      <jaas:module className="org.apache.karaf.jaas.modules.jdbc.JDBCLoginModule" flags="required">
      datasource = osgi:javax.sql.DataSource/(osgi.jndi.service.name=jdbc/karafdb)
      query.password = SELECT PASSWORD FROM USERS WHERE USERNAME=?
      query.role = SELECT ROLE FROM ROLES WHERE USERNAME=?
      </jaas:module>
      </jaas:config>

      with a default Karaf instance (using Felix OSGi framework), the jaas:realms command shows the default PropertiesLoginModule and the user one.

      However, if the user switch to Equinox OSGi framework, only the default PropertiesLoginModule is seen, not the user one when performing jaas:realms.

        Activity

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Jean-Baptiste Onofré
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development