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 1094142

Summary: Add prompt message if rhsm register to satellite with incorrect user/pass
Product: Red Hat Satellite Reporter: gaoshang <sgao>
Component: RegistrationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bkearney, cduryee, cwelton, liliu, sgao, sghai
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-18 19:20:54 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 gaoshang 2014-05-05 07:03:58 UTC
Description of problem:
Register to satellite with RHSM, if user/pass is not correct, system should provide prompt message, but now nothing show up.

Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140430.4

How reproducible:
always

Steps to Reproduce:
1. Set up RHSM by run:
        rpm -Uvh http://sat6host.example.redhat.com/pub/candlepin-cert-consumer-latest.noarch.rpm
2. Register to Satellite 6 with wrong user/pass


Actual results:
[root@hp-z220-17 ~]# subscription-manager register
Username: eeeeeee
Password: 
Password: 
[root@hp-z220-17 ~]# 


[root@hp-z220-17 ~]# subscription-manager register --user=adfasf --pass=asdf
[root@hp-z220-17 ~]#


Expected results:
Need to provide prompt message for user, such as "Invalid username or password ***"

Additional info:

==> /var/log/foreman/production.log <==

Processing by Katello::Api::V1::RootController#resource_list as JSON
  Parameters: {"api_version"=>"v1", "root"=>{}}
Completed 200 OK in 19ms (Views: 2.6ms | ActiveRecord: 0.0ms)
Processing by Katello::Api::V1::PingController#server_status as JSON
  Parameters: {"api_version"=>"v1", "ping"=>{}}
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
Processing by Katello::Api::V1::CandlepinProxiesController#list_owners as JSON
  Parameters: {"api_version"=>"v1", "login"=>"eeeeeee", "candlepin_proxy"=>{}}
invalid user
[ WARN 2014-05-05 02:46:06 cp_proxy  #29293] SSO failed
  Rendered api/v1/errors/access_denied.json.rabl (0.5ms)
Filter chain halted as :authorize_rhsm rendered or redirected
Completed 403 Forbidden in 5ms (Views: 1.5ms | ActiveRecord: 0.7ms)

Comment 1 RHEL Program Management 2014-05-05 07:25:07 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Corey Welton 2014-05-05 13:46:22 UTC
Is this more an RHSM-related BZ or is the behavior different than that which is seen when providing incorrect user/password pair from RHN/Customer Portal?

Comment 4 gaoshang 2014-05-06 02:46:06 UTC
(In reply to Corey Welton from comment #3)
> Is this more an RHSM-related BZ or is the behavior different than that which
> is seen when providing incorrect user/password pair from RHN/Customer Portal?

yes, the behavior is different. And I thinks it's much more like an integration bug.

For RHN/Customer Portal, it gives message:
  "Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html"

For SAM, it gives:
  "Invalid credentials"

Comment 5 Brad Buckingham 2014-05-27 15:45:46 UTC
*** Bug 1096058 has been marked as a duplicate of this bug. ***

Comment 7 Chris Duryee 2016-08-18 19:20:54 UTC
I tested this via "subscription-manager register --environment Library" and got "Unauthorized: Invalid credentials for request" when entering an invalid username/pass.

Closing as CLOSED/CURRENTRELEASE since bz is from 2014 and works in 6.2.