[
https://issues.apache.org/jira/browse/KARAF-6797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17173955#comment-17173955
]
Jean-Baptiste Onofré commented on KARAF-6797:
---------------------------------------------
Only class name is not enough, you have to provide both realm and module.
> JAAS realm-manage with module name failed
> -----------------------------------------
>
> Key: KARAF-6797
> URL: https://issues.apache.org/jira/browse/KARAF-6797
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.8
> Environment: Mac OS Catalina
> OpenJDK 11
> Reporter: Andre Schlegel-Tylla
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
>
> If I try to manage a realm via "--module MODULE-CLASS-NAME" I got the message
> "A valid realm or the realm index need to be specified".
> If I'm using the index I have no problems.
> {code:java}
> virtimo@bpc()> jaas:realm-list
> Index │ Realm Name │ Login Module Class Name
> ──────┼────────────┼─────────────────────────────────────────────────────────────────
> 1 │ inubit │ de.virtimo.bpc.core.auth.jaas.inubit.InubitLoginModule
> 2 │ jdbc │ de.virtimo.bpc.core.auth.jaas.jdbc.JDBCLoginModule
> 3 │ karaf │
> org.apache.karaf.jaas.modules.properties.PropertiesLoginModule
> 4 │ karaf │
> org.apache.karaf.jaas.modules.publickey.PublickeyLoginModule
> 5 │ karaf │ org.apache.karaf.jaas.modules.audit.FileAuditLoginModule
> 6 │ karaf │ org.apache.karaf.jaas.modules.audit.LogAuditLoginModule
> 7 │ karaf │
> org.apache.karaf.jaas.modules.audit.EventAdminAuditLoginModule
> 8 │ keycloak │
> de.virtimo.bpc.core.auth.jaas.keycloak.DirectKeycloakLoginModule
> virtimo@bpc()> jaas:realm-manage --module
> org.apache.karaf.jaas.modules.properties.PropertiesLoginModule
> A valid realm or the realm index need to be specified
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)