Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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

Summary: hammer cli does not provide authorized type info other than internal
Product: Red Hat Satellite Reporter: Kedar Bidarkar <kbidarka>
Component: HammerAssignee: Stephen Benjamin <stbenjam>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: dcleal, stbenjam
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/7468
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:41:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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