Bug 1448179 - Hammer auth-source didn't list all sources [NEEDINFO]
Hammer auth-source didn't list all sources
Status: ASSIGNED
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Hammer (Show other bugs)
6.2.8
All All
unspecified Severity high (vote)
: Unspecified
: --
Assigned To: Dominik Hlavac Duran
Katello QA List
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-04 13:30 EDT by Waldirio M Pinheiro
Modified: 2018-06-22 15:38 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
bkearney: needinfo? (mhulan)


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 18584 None None None 2017-07-10 07:23 EDT
Foreman Issue Tracker 19651 None None None 2017-05-24 08:02 EDT

  None (edit)
Description Waldirio M Pinheiro 2017-05-04 13:30:54 EDT
Description of problem:
Customer would like to see all sources instead only the ldap source via hammer command

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

How reproducible:
100%

Steps to Reproduce:
1. via cli type *hammer auth-source ldap list*
2. Via cli and as postgre user type *psql -d foreman -c "select id,name,type from auth_sources;"*
3.

Actual results:
Are different

Expected results:
Should be the same or at least just add one option in hammer like below to show all sources
*hammer auth-source "all" list*

Additional info:
Comment 1 Waldirio M Pinheiro 2017-05-04 13:31:37 EDT
Below one example


// Query from hammer
---
# hammer -p redhat auth-source ldap list
---|------|--------|------|---------------
ID | NAME | LDAPS? | PORT | SERVER TYPE   
---|------|--------|------|---------------
3  | w2k8 |        | 389  | AuthSourceLdap
---|------|--------|------|---------------
#
---

// Query from db
---
$ psql -d foreman -c "select id,name,type from auth_sources;"
 id |   name   |        type        
----+----------+--------------------
  1 | Internal | AuthSourceInternal
  2 | Hidden   | AuthSourceHidden
  3 | w2k8     | AuthSourceLdap
(3 rows)
$
---
Comment 2 Marek Hulan 2017-05-05 02:15:34 EDT
Hello Waldirio. Could you please explain, why customer would want to see these?

The hammer command reflects what's displayed in UI. AuthSourceHidden is obviously hidden from users and is used for internal purpose (it's used by internal anonymous admin user). AuthSourceInternal is auth source for users which password is stored in internal DB, there's nothing to configure for it, therefore it's also hidden. The only legitimate auth source type that should be displayed except for LDAP auth source is external auth source, which is only created when user configures it using the installer. It's normally used only if users want to use kerberos/IPA authentication. This is already tracked as BZ 1336236.
Comment 3 Waldirio M Pinheiro 2017-05-05 18:15:06 EDT
Hi Marek, good afternoon

I saw one ExternalSource and I asked customer what procedure / steps was used to create that one once he would like to see via hammer command.

When customer send me the reply I'll update the BZ

Thank you!!
Comment 10 pm-sat@redhat.com 2017-07-10 06:04:35 EDT
Upstream bug assigned to dhlavacd@redhat.com
Comment 11 pm-sat@redhat.com 2017-07-10 06:04:39 EDT
Upstream bug assigned to dhlavacd@redhat.com

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