Add test & user enabled state in set user password
Support for test password and user enabled state in Set user
password command
Unit Test:
1. Performed user enabled & disabled and verified the state change
2. Performed test user password - both pass & fail condition
Change-Id: I0eb91ad849e43072b1d9e90d777304fabdfb40bc
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
diff --git a/user_channel/user_mgmt.hpp b/user_channel/user_mgmt.hpp
index 16dbd31..5755fa0 100644
--- a/user_channel/user_mgmt.hpp
+++ b/user_channel/user_mgmt.hpp
@@ -183,6 +183,16 @@
*/
ipmi_ret_t setUserName(const uint8_t& userId, const char* userNameInChar);
+ /** @brief to set user enabled state
+ *
+ * @param[in] userId - user id
+ * @param[in] enabledState - enabled state of the user
+ *
+ * @return IPMI_CC_OK for success, others for failure.
+ */
+ ipmi_ret_t setUserEnabledState(const uint8_t& userId,
+ const bool& enabledState);
+
/** @brief to set user privilege and access details
*
* @param[in] userId - user id