[ https://issues.apache.org/jira/browse/KARAF-1394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261658#comment-13261658 ]
Jean-Baptiste Onofré commented on KARAF-1394: --------------------------------------------- Even when using Felix OSGi framework, we have this behaviour here: - when we use the first realm (PropertiesLoginModule) and do a "jaas:users", we get a correct list of users. - when we switch to the second realm (JDBCLoginModule) and do a "jaas:users", we get: "Failed to resolve backing engine for realm:karaf and moudle:org.apache.karaf.jaas.boot.ProxyLoginModule" > Custom login modules not seen with Equinox > ------------------------------------------ > > Key: KARAF-1394 > URL: https://issues.apache.org/jira/browse/KARAF-1394 > Project: Karaf > Issue Type: Bug > Components: karaf-core > Affects Versions: 2.2.6 > Reporter: Jean-Baptiste Onofré > Fix For: 2.2.8, 2.3.0, 3.0.0 > > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira