2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2024-11-21 09:02:00 +00:00
2 rspconfig password
xuweibj edited this page 2017-11-24 10:03:06 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Mini-design for OpenBMC rspconfig password

Background

To provide a command to config password of OpenBMC.

Set password: # curl -k b cjar -X POST -H "Content-Type: application/json" -d '{ "data" : [“xxxxxxxx”] }' https://x.x.x.x/xyz/openbmc_project/user/root/action/SetPassword

Interface

rspconfig admin_passwd={currentpasswd,newpasswd}

Status Machine

LOGIN —> RSPCONFIG_PASSWD_VERIFY (1) —> RSPCONFIG_PASSWD_REQUEST —> RSPCONFIG_PASSWD_RESPONSE

(1) If currentpasswd does not matched nodes bmcpassword, print error message and exit.

If currentpasswd equals newpasswd, print message and exit.