Change the password through the REST interface

Xiaochao Ma (马小超) maxiaochao at inspur.com
Tue Sep 24 11:38:03 AEST 2019


Hi, all

I'm trying to change the user's password through the REST interface.

Feedback is "The specified method cannot be found"

The'busctl introspect'command also failed to find this method.

What may be the cause? Is there any other way to change passwords through REST?

$ curl -k -H "X-Auth-Token: $token" -H "Content-Type: application/json"
-d "{\"data\": [\"1qaz at WSX\"] }" -X POST
https://${bmc}/xyz/openbmc_project/user/xiao/action/SetPassword
{
  "data": {
    "description": "The specified method cannot be found"
  },
  "message": "404 Not Found",
  "status": "error"
}



More information about the openbmc mailing list