Bug 1094142
| Summary: | Add prompt message if rhsm register to satellite with incorrect user/pass | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | gaoshang <sgao> |
| Component: | Registration | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.0.3 | CC: | 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: | |||
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. 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? (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" *** Bug 1096058 has been marked as a duplicate of this bug. *** 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. |
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)