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 1166472 - hammer shell command does not verify username/passowrd
Summary: hammer shell command does not verify username/passowrd
Keywords:
Status: CLOSED DUPLICATE of bug 979625
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-21 04:20 UTC by Neha
Modified: 2017-02-23 20:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-21 08:25:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1140553 0 medium CLOSED hammer --help redundantly requires credentials 2021-02-22 00:41:40 UTC

Internal Links: 1140553

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 ***


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