[ 
https://issues.apache.org/jira/browse/KARAF-6797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17174079#comment-17174079
 ] 

Andre Schlegel-Tylla commented on KARAF-6797:
---------------------------------------------

Thank you [~jbonofre]
{code:java}
virtimo@bpc()> jaas:realm-manage --realm karaf --module 
org.apache.karaf.jaas.modules.properties.PropertiesLoginModule
{code}
works fine.

But then the help message should be updated. This is not obvious:
{code:java}
virtimo@bpc()> jaas:realm-manage --help
DESCRIPTION        jaas:realm-manage
 Manage users and roles of a JAAS Realm
SYNTAX        jaas:realm-manage [options]
OPTIONS
        -h, --hidden            Manage hidden realms
        --realm                 JAAS Realm
        -f, --force             Force the management of this realm, even if 
another one was under management
        --help                  Display this help message
        --index                 Realm Index
        --module                JAAS Login Module Class Name
{code}
I have created an PR for this: [https://github.com/apache/karaf/pull/1142]

> 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)

Reply via email to