Change the password through the REST interface
Ratan Gupta
ratagupt at linux.vnet.ibm.com
Tue Sep 24 22:04:14 AEST 2019
Hi,
Which webserver(bmcweb/phosphor-rest-server) you are using it?
If bmcweb then use the redfish API to change the password.
Ratan
On 24/09/19 7:08 AM, Xiaochao Ma (马小超) wrote:
> 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