Bug 854632

Summary: user update does not allow you to change user password
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0.6CC: cperry
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 40   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 856711 (view as bug list) Environment:
Last Closed: 2013-01-09 17:05:36 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: 848520, 856711    

Description Preethi Thomas 2012-09-05 13:30:50 UTC
Description of problem:
There is no way to change password for a user

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


How reproducible:


Steps to Reproduce:
1. Create a user
2. Run user update to change the password
3.
  
Actual results:

[root@preethi-el6-pulp ~]# pulp-admin user update --login user1 --password redhat
Usage: pulp-admin [options]

Command: update
Description: changes metadata of an existing user

Available Arguments:

  --login - (required) identifies the user to be updated
  --name  - user-readable full name of the user
[root@preethi-el6-pulp ~]# pulp-admin user update --help
Command: update
Description: changes metadata of an existing user

Available Arguments:

  --login - (required) identifies the user to be updated
  --name  - user-readable full name of the user
[root@preethi-el6-pulp ~]# 

Expected results:


Additional info:

Comment 1 Sayli Karmarkar 2012-09-13 21:53:36 UTC
commit b2c04b0cd21242cba5bccc655b477dec8d7c792c
Author: Sayli Karmarkar <skarmark>
Date:   Thu Sep 13 14:47:11 2012 -0700

    854632 - added --password and -p options to user update command to update password in a non-interactive and interactive fashion respectively


$ pulp-admin user update --help
Command: update
Description: changes metadata of an existing user

Available Arguments:

  --login    - (required) identifies the user to be updated
  --name     - user-readable full name of the user
  --password - new password for the user, use -p if you want to be prompted for
               the password
  -p         - if specified, you will be prompted to enter new password for the
               user

$ pulp-admin user update --login sayli --password asdf1234
User [sayli] successfully updated

$ pulp-admin user update --login sayli --name sayli -p
Enter new password for user [sayli] : 
Re-enter new password for user [sayli]: 
User [sayli] successfully updated

Comment 2 Sayli Karmarkar 2012-09-13 21:55:26 UTC
Merged into master and pulp-cr-2 branches.

Comment 3 Jeff Ortel 2012-09-17 22:56:28 UTC
build: 2.0.4

Comment 4 Preethi Thomas 2012-09-26 17:49:16 UTC
[root@preethi-el6-pulp ~]# rpm -q pulp-rpm-server
pulp-rpm-server-2.0.5-1.el6.noarch
[root@preethi-el6-pulp ~]# 


[root@preethi-el6-pulp ~]# pulp-admin -u admin -p admin user update --login preethi --password test
User [preethi] successfully updated

[root@preethi-el6-pulp ~]# 
[root@preethi-el6-pulp ~]# 
[root@preethi-el6-pulp ~]# 
[root@preethi-el6-pulp ~]# pulp-admin -u admin -p admin user update --login preethi -p
Enter new password for user [preethi] : 
Re-enter new password for user [preethi]: 
User [preethi] successfully updated

[root@preethi-el6-pulp ~]#

Comment 5 Jay Dobies 2013-01-03 20:03:05 UTC
Moving these up against the 2.0 Beta so we can delete the CR-2 version from bugzilla.

Comment 6 Preethi Thomas 2013-01-09 17:05:36 UTC
Pulp v2.0 released