Project

Profile

Help

Issue #1058

closed

can't update users on rhel7 and f20

Added by igulina@redhat.com over 9 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

rpm -qa pulp-server

pulp-server-2.7.0-0.3.beta.fc20.noarch

pulp-admin -u admin -p admin auth user create --login test-user
Enter password for user [test-user] : 123456
Re-enter password for user [test-user]: 123456
User [test-user] successfully created

>> pulp-admin -u admin -p admin  auth user update --login test-user --password 654321
Invalid properties: ['p']

>> pulp-admin -u admin -p admin  auth user update --login test-user --password '654321'
Invalid properties: ['p']

>> pulp-admin -u admin -p admin  auth user update --login test-user --password -p
Invalid properties: ['p']

>> pulp-admin -u admin -p admin  auth user update --login test-user -p
Enter password for user [test-user] : <654321>
Re-enter password for user [test-user]: <654321>
Invalid properties: ['p']

>> pulp-admin -u admin -p admin  auth user update --login test-user --password 
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
  --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 -u admin -p admin  auth user update --login test-user -p 654321
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 -u admin -p admin  auth user update --login test-user -p '654321'
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 -u admin -p admin  auth user update --login test-user -p 
Enter password for user [test-user] : <qazxsw>
Re-enter password for user [test-user]: <qazxsw>
Invalid properties: ['p']

However it checks if passwords match:

>> pulp-admin -u admin -p admin  auth user update --login test-user -p 
Enter password for user [test-user] : <qwerty>
Re-enter password for user [test-user]: <ytrewq>
Passwords do not match

The same output was observed on rhel7

It's also impossible to update user's name:

>> pulp-admin  auth user create --login new_user --password 654321 --name "Test_user"
User [new_user] successfully created

>> pulp-admin  auth user update --login new_user --name "BlaBla"
Invalid properties: ['p']

Related issues

Related to Pulp - Issue #1085: pulp-admin and pulp-admin auth user update both use the -p flag for different purposesCLOSED - WONTFIXActions

Also available in: Atom PDF