Bug 918036

Summary: RFE - rhncfg-manager supports --username and --password from CLI
Product: Red Hat Satellite 5 Reporter: Dimitar Yordanov <dyordano>
Component: Configuration ManagementAssignee: Stephen Herr <sherr>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Korbel <mkorbel>
Severity: medium Docs Contact:
Priority: medium    
Version: 550CC: cperry, mkollar, mkorbel, sherr, tlestach
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhncfg-5.10.55-4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-01 19:59:21 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: 924171    
Attachments:
Description Flags
Patch : --password --username + other small fixes none

Comment 1 Dimitar Yordanov 2013-03-05 11:57:36 UTC
Created attachment 705369 [details]
Patch : --password --username  + other small fixes

Comment 2 Jan Pazdziora (Red Hat) 2013-03-15 11:24:25 UTC
*** Bug 592314 has been marked as a duplicate of this bug. ***

Comment 5 Matej Kollar 2013-09-05 12:06:34 UTC
Information about those options is missing man page.

Comment 6 Dimitar Yordanov 2013-09-06 14:58:23 UTC
Description for the newly introduced switches (--username, --password) was added to the rhncfg-manager man page. 
Spacewalk Master: 4cb4e1607d1842e076257a607d5a2e5eed4d10de

Comment 8 Tomas Lestach 2013-09-09 11:26:39 UTC
Btw. Dimitar, thank you for the patch! :-)

Comment 10 Martin Korbel 2013-09-18 12:24:09 UTC
VERIFIED on rhncfg-management-5.10.55-5.el5sat
REPRODUCED on rhncfg-management-5.10.27-12.el5sat

Steps to reproduce:
> rhncfg-manager --username=admin --password=xxx list-channels

OLD:
Usage: /usr/bin/rhncfg-manager MODE [ --server-name name ] [ params ]
Valid modes are:
	add
	create-channel
	diff
...


NEW:
Using server name sun-x8420-01.rhts.eng.bos.redhat.com
Available config channels:
  rhn_proxy_config_1000010005
  test



>man rhncfg-manager
...
SYNOPSIS
       rhncfg-manager [ MODE ] [ --server-name name ] [ --username user ] [ --password pass
 ] [ params ]
...
OTHERS
       --server-name
              Spacewalk server name.

       --username
              Spacewalk user name.

       --password
              Spacewalk password for the specified user.

       -h, --help
              Display the help screen with a list of options.

              Use context sensitive help as well with the diffent "modes".  E.g.,
              rhncfg-manager upload-channel --help

Comment 11 Clifford Perry 2013-10-01 19:59:21 UTC
This bug was fixed with updated packages being released within the RHN Tools channels. 


RHN Tools (for Sat 5.6 GA) Errata text:

https://rhn.redhat.com/errata/RHEA-2013-1391.html