Bug 1166472

Summary: hammer shell command does not verify username/passowrd
Product: Red Hat Satellite Reporter: Neha <nerawat>
Component: HammerAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.4CC: dcleal, sashinde
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: 2014-11-21 08:25:57 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 Neha 2014-11-21 04:20:32 UTC
Description of problem:
hammer shell command prompt for username/password but it doesnt verify it.

hammer shell
[Foreman] username: <wrong username>
[Foreman] password for admin: <wrong password>
Welcome to the hammer interactive shell
Type 'help' for usage information
Command completion is disabled on ruby < 1.9 due to compatibility problems.
hammer> user list
Invalid username or password


Version-Release number of selected component (if applicable):
rubygem-hammer_cli-0.1.1-12.el6sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. Run hammer shell command
2. Enter wrong username or wrong password
3. Run any command in interactive shell


Actual results: 
It will fail with "Invalid username or password"

Expected results:
It should verify username password while running hammer shell command

Additional info:
Same way it works for --help, But I think that is less important compare to hammer shell

Comment 1 RHEL Program Management 2014-11-21 04:23:28 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 Dominic Cleal 2014-11-21 08:25:57 UTC

*** This bug has been marked as a duplicate of bug 979625 ***