Bug 1257748 - [RFE] Add the ability to change the password for a user through API, especially for 'admin' user
[RFE] Add the ability to change the password for a user through API, especial...
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: GA
: 5.5.0
Assigned To: Tim Wade
Taras Lehinevych
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2015-08-27 16:27 EDT by John Matthews
Modified: 2016-08-02 21:33 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
The new version of CloudForms Management Engine adds the ablity to change a user's password using the REST API. This feature was added to address the need to change the CloudForms Management Engine's administrator's password during deployment from the Red Hat Cloud Infrastructure product.
Story Points: ---
Clone Of:
Last Closed: 2015-12-08 08:28:49 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description John Matthews 2015-08-27 16:27:37 EDT
Description of problem:

RHCI needs the ability to change the CFME admin user's password during a deployment.  

We'd like to be able to interact with a REST API to alter the admin user's password.
Comment 3 Aziza Karol 2015-10-28 01:48:21 EDT
Can you please provide verification steps?
Comment 4 Taras Lehinevych 2015-11-03 08:09:14 EST
Verified fixed in version

Verification step: 
1. Get admin user via rest api
2. Send query with new password
3. Try to login in cfme with new password

You can run code in ipython:

from cfme.login import login
from cfme import Credential
from cfme.configure.access_control import User
from fixtures.pytest_store import store

rest_api = store.current_appliance.rest_api
admin_user = rest_api.collections.users.find_by(userid='admin')[0]
new_password = 'test'

# This part could be done manually
cred = Credential(principal=admin_user.userid, secret=new_password)
new_user = User(credential=cred)
Comment 6 errata-xmlrpc 2015-12-08 08:28:49 EST
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.


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