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 1580327 - Hammer ask for password though -p option passed
Summary: Hammer ask for password though -p option passed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.4.0
Assignee: Aditi Puntambekar
QA Contact: Jameer Pathan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-21 09:30 UTC by Nikhil Kathole
Modified: 2019-11-05 23:20 UTC (History)
13 users (show)

Fixed In Version: tfm-rubygem-hammer_cli_foreman-0.13.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:10:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 23996 0 None None None 2018-06-19 08:12:58 UTC

Description Nikhil Kathole 2018-05-21 09:30:33 UTC
Description of problem: Though -p option passed to hammer, it will prompt user for password.


Version-Release number of selected component (if applicable): 

# rpm -q satellite
satellite-6.4.0-7.beta.el7sat.noarch
# rpm -qa | grep hammer
tfm-rubygem-hammer_cli-0.13.0-1.el7sat.noarch


How reproducible: always


Steps to Reproduce:
1. # hammer -u admin -p <current_password> user update --login admin --password '<new-password>'
Enter user's current password: 
User [admin] updated.


Actual results: User prompted with 
Enter user's current password: 
though -p option is set.

Expected results: Should not ask again for user's current password if -p option is set.

Additional info:

Comment 3 Ivan Necas 2018-06-19 08:12:54 UTC
Created redmine issue http://projects.theforeman.org/issues/23996 from this bug

Comment 9 Satellite Program 2018-08-08 18:06:03 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/23996 has been resolved.

Comment 10 Jameer Pathan 2018-08-24 11:26:24 UTC
Verified:

# rpm -q satellite
satellite-6.4.0-11.beta.el7sat.noarch

#rpm -qa | grep hammer
tfm-rubygem-hammer_cli-0.13.1-1.el7sat.noarch

Step:
1. # hammer -u admin -p <current_password> user update --login admin --password '<new-password>'
User [admin] updated.

Comment 11 Bryan Kearney 2018-10-16 19:10:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927


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