rspconfig password - xcat2/xcat-core GitHub Wiki

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 node’s bmcpassword, print error message and exit.

If currentpasswd equals newpasswd, print message and exit.

⚠️ **GitHub.com Fallback** ⚠️