Bug 914825 - katello shell does not validate the username/password combination
Summary: katello shell does not validate the username/password combination
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Subscription Asset Manager
Classification: Retired
Component: katello
Version: 1.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Katello Bug Bin
QA Contact: SAM QE List
URL:
Whiteboard:
Depends On:
Blocks: sam20-tracker
TreeView+ depends on / blocked
 
Reported: 2013-02-22 21:51 UTC by sthirugn@redhat.com
Modified: 2014-08-29 12:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-29 12:42:15 UTC
Embargoed:


Attachments (Terms of Use)

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


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