Wednesday, May 21, 2014

OpenStack Keystone Issue with Update of User’s Password – Havana

OpenStack Keystone Update User’s Password – Havana

It took me a while to figure out how to update a user’s password via the API in Keystone.  All of the documentation seems to be incorrect.  I finally had to take a packet trace of the keystone CLI performing a password update and looking at that before I got the correct API endpoint and what to send to the server.  It turns out to be a PUT request and not like most of their documentation saying it is is a POST request.  Which would make sense since PUT is for updating.
Here is the cURL command:
curl -X PUT \
-H “X-Auth-Token:” \
-H “Content-type: application/json” \
-d ‘{“user”: {“password”: “new_password”, “id”: ““}}’\

No comments:

Post a Comment

Featured

TechBytes on Linux

This is a growing list of Linux commands which might come handy for the of Linux users. 1. Found out i had to set the date like this: ...

Popular Posts