Bug 914825

Summary: katello shell does not validate the username/password combination
Product: [Retired] Subscription Asset Manager Reporter: sthirugn <sthirugn>
Component: katelloAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED WONTFIX QA Contact: SAM QE List <sam-qe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.3CC: bkearney, tomckay
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-29 12:42:15 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:
Bug Depends On:    
Bug Blocks: 971511    

Description sthirugn@redhat.com 2013-02-22 21:51:37 UTC
Description of problem:
katello shell does not validate the username/password combination

Version-Release number of selected component (if applicable):
* candlepin-0.7.23-1.el6_3.noarch
* candlepin-cert-consumer-cloud-qe-9.idm.lab.bos.redhat.com-1.0-1.noarch
* candlepin-tomcat6-0.7.23-1.el6_3.noarch
* elasticsearch-0.19.9-5.el6_3.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.2.1-1h.el6_3.noarch
* katello-cli-1.2.1-12h.el6_3.noarch
* katello-cli-common-1.2.1-12h.el6_3.noarch
* katello-common-1.2.1-15h.el6_3.noarch
* katello-configure-1.2.3-3h.el6_3.noarch
* katello-glue-candlepin-1.2.1-15h.el6_3.noarch
* katello-headpin-1.2.1-15h.el6_3.noarch
* katello-headpin-all-1.2.1-15h.el6_3.noarch
* katello-selinux-1.2.1-2h.el6_3.noarch
* thumbslug-0.0.28-1.el6_3.noarch
* thumbslug-selinux-0.0.28-1.el6_3.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install SAM and run katello-configure. (username/password: admin/admin)
2. Log in to katello shell using a wrong password
#katello -u admin -p admin123 shell

  
Actual results:
It appears like the credentials are validated to be correct and it opens the shell (shown below)
#katello -u admin -p admin123 shell
sam>


Expected results:
Error message saying the credentials are incorrect

Additional info:
Although the shell is opened, most of the commands does not work. But help command works
Example:
# katello -u admin -p admin1 shell
sam> ping
Invalid credentials
sam> user create --username user1 --password user1 --email test
Invalid credentials
sam> help
Usage:   <options> <command>
Supported Commands:
	activation_key activation key specific actions in the katello server
	client         client specific actions in the katello server.....
        ......

Comment 1 Bryan Kearney 2013-07-15 14:26:14 UTC
moving to 1.4.

Comment 3 Tom McKay 2014-08-29 12:42:15 UTC
Next SAM release has a complete rewrite of CLI