Rename the reset password command
Call it 'reset authentication' instead, since it will do
more than just reset the password, such as:
* Enable local users if they were disabled
* Delete the LDAP configuration if there was one
* Reset the root password back to the default one
Change-Id: Ib71e827be5e6b75ba4f2747f64041cc5f05cda48
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/README.md b/README.md
index e80f6ba..86bee27 100644
--- a/README.md
+++ b/README.md
@@ -15,5 +15,5 @@
## Supported Commands
- Partial Add
- Prepare for host update
-- Reset BMC password
+- Reset BMC authentication
diff --git a/oemhandler.cpp b/oemhandler.cpp
index 8e1981f..3f443f2 100644
--- a/oemhandler.cpp
+++ b/oemhandler.cpp
@@ -205,11 +205,11 @@
return ipmi_rc;
}
-ipmi_ret_t ipmi_ibm_oem_reset_bmc_password(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
- ipmi_request_t request,
- ipmi_response_t response,
- ipmi_data_len_t data_len,
- ipmi_context_t context)
+ipmi_ret_t ipmi_ibm_oem_reset_bmc_auth(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
+ ipmi_request_t request,
+ ipmi_response_t response,
+ ipmi_data_len_t data_len,
+ ipmi_context_t context)
{
return IPMI_CC_OK;
}
@@ -232,8 +232,8 @@
ipmi_register_callback(NETFUN_OEM, IPMI_CMD_PREP_FW_UPDATE, NULL, ipmi_ibm_oem_prep_fw_update,
SYSTEM_INTERFACE);
- ipmi_register_callback(NETFUN_IBM_OEM, IPMI_CMD_RESET_BMC_PASSWORD, NULL,
- ipmi_ibm_oem_reset_bmc_password, SYSTEM_INTERFACE);
+ ipmi_register_callback(NETFUN_IBM_OEM, IPMI_CMD_RESET_BMC_AUTH, NULL,
+ ipmi_ibm_oem_reset_bmc_auth, SYSTEM_INTERFACE);
// Create new object on the bus
auto objPath = std::string{CONTROL_HOST_OBJ_MGR} + '/' + HOST_NAME + '0';
diff --git a/oemhandler.hpp b/oemhandler.hpp
index beb6901..097d4b4 100644
--- a/oemhandler.hpp
+++ b/oemhandler.hpp
@@ -10,7 +10,7 @@
enum ipmi_netfn_oem_cmds
{
IPMI_CMD_PREP_FW_UPDATE = 0x10,
- IPMI_CMD_RESET_BMC_PASSWORD = 0x11,
+ IPMI_CMD_RESET_BMC_AUTH = 0x11,
IPMI_CMD_PESEL = 0xF0,
IPMI_CMD_OCC_RESET = 0x0E,
};