Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1134482 - hammer cli does not provide authorized type info other than internal
Summary: hammer cli does not provide authorized type info other than internal
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Stephen Benjamin
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-27 14:55 UTC by Kedar Bidarkar
Modified: 2019-09-26 13:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:41:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 7468 0 None None None 2016-03-04 19:29:14 UTC
Red Hat Bugzilla 1134493 0 unspecified CLOSED [RFE] hammer cli neither provides auth-source nor auth-source-id 2021-02-22 00:41:40 UTC

Internal Links: 1134493

Description Kedar Bidarkar 2014-08-27 14:55:44 UTC
Description of problem:

hammer user info, does not display the Authorized type other than "Internal"

Here,

admin: local user
tadmin: ldap user 

[root@dhcp201-170 ~]# hammer user info --login admin
Id:            3
Login:         admin
Name:          Admin User
Email:         root.redhat.com
Admin:         yes
Authorized by: Internal
Last login:    2014/08/27 13:11:27
Roles:         
    Anonymous
User groups:   

Created at:    2014/08/25 20:02:06
Updated at:    2014/08/27 13:11:27

[root@dhcp201-170 ~]# hammer user info --login tadmin
Id:            6
Login:         tadmin
Name:          test admin
Email:         
Admin:         no
Authorized by: 
Last login:    2014/08/27 13:11:57
Roles:         
    Anonymous
User groups:   

Created at:    2014/08/27 13:11:56
Updated at:    2014/08/27 13:11:57


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
as seen from above, "authorized by": is blank.

Expected results:
hammer cli should provide "Authorized by": LDAP-dhcp201-136

when the command, 'hammer user info --login tadmin' is issued.

NOTE: *tadmin* here is ldap user.

Additional info:

Comment 3 Dominic Cleal 2014-09-16 14:24:38 UTC
Created redmine issue http://projects.theforeman.org/issues/7468 from this bug

Comment 4 Bryan Kearney 2016-03-07 11:11:26 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/7468 has been closed
-------------
Stephen Benjamin
Applied in changeset commit:hammer-cli-foreman|11a5f8412117d4d21b91a027c031cf60bec8eadf.

Comment 7 Kedar Bidarkar 2016-05-24 16:19:56 UTC
hammer -u admin -p changeme user info --login foobar
Id:                   4
Login:                foobar
Name:                 foobar 
Email:                foobar
Admin:                no
Authorized by:        win2008R2AD
Locale:               default
Timezone:             default
Last login:           2016/05/24 16:17:30
Default organization: 
Default location:     
Roles:                
    Anonymous
User groups:          
    katello12
Created at:           2016/05/24 16:17:22
Updated at:           2016/05/24 16:17:30

VERIFIED with sat62-snap12.1

Comment 8 Bryan Kearney 2016-07-27 11:41:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501


Note You need to log in before you can comment on or make changes to this bug.