Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1394

Custom login modules not seen with Equinox

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.6
    • 2.2.8, 2.3.0, 3.0.0
    • karaf
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: