karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-3270) Add command/MBean operation to give current user and his roles
Date Wed, 10 May 2017 16:34:04 GMT

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

ASF GitHub Bot commented on KARAF-3270:
---------------------------------------

GitHub user dfjdejulio opened a pull request:

    https://github.com/apache/karaf/pull/298

    Added "jaas:whoami" command, to inspect JAAS principals.

    This is my attempt at resolving issue [KARAF-3270](https://issues.apache.org/jira/browse/KARAF-3270).
    
    It adds a "jaas:whoami" command.  By default, it returns the names all the principals
of type "UserPrincipal".  Typically there will be only one and it will be the logged-in user
(eg. "karaf").  If you give it "-g" or "-r", it will list the groups or roles instead (so
by default, "whoami -r" would return vewer, manager, admin, systembundles).  If you give it
"-a", it'll report on every JAAS Principal in the current Subject, even if it's of a type
that doesn't have meaning to Karaf itself (eg. a Kerberos principal), along with the class
of each principal.
    
    (I needed it to debug the arguably complex authn/authz we're trying to set up right now
at Carnegie Mellon.)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dfjdejulio/karaf master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/karaf/pull/298.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #298
    
----
commit 203ad3ac73933749c8e4cef44dd19e675f25dc3d
Author: Doug DeJulio <ddj@cmu.edu>
Date:   2017-05-10T16:26:29Z

    Added "jaas:whoami" command, to inspect JAAS principals (ie. user/group/role).

----


> Add command/MBean operation to give current user and his roles
> --------------------------------------------------------------
>
>                 Key: KARAF-3270
>                 URL: https://issues.apache.org/jira/browse/KARAF-3270
>             Project: Karaf
>          Issue Type: New Feature
>          Components: karaf-shell
>            Reporter: Jean-Baptiste Onofré
>
> When logged on with an user (on the local console, ssh, MBean), it would be great to
get the current username (even if we have in the prompt and in the console session), but also
with current user roles.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message