diff options
author | Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> | 2018-11-13 19:00:58 +0530 |
---|---|---|
committer | Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> | 2018-11-20 11:33:52 +0530 |
commit | 282e79b49e6b36dac304b72ed0e9d065fb5b818c (patch) | |
tree | 511c6dbe5b5f7cfaed3247f1be5524874f65a828 /user_channel/user_layer.hpp | |
parent | f4b2b090a4c67e132d4c22fdc13ecbb261c6147a (diff) | |
download | phosphor-host-ipmid-282e79b49e6b36dac304b72ed0e9d065fb5b818c.tar.gz phosphor-host-ipmid-282e79b49e6b36dac304b72ed0e9d065fb5b818c.zip |
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>
Diffstat (limited to 'user_channel/user_layer.hpp')
-rw-r--r-- | user_channel/user_layer.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/user_channel/user_layer.hpp b/user_channel/user_layer.hpp index 5136e86..8c81188 100644 --- a/user_channel/user_layer.hpp +++ b/user_channel/user_layer.hpp @@ -146,6 +146,15 @@ ipmi_ret_t ipmiUserGetUserName(const uint8_t& userId, std::string& userName); ipmi_ret_t ipmiUserGetAllCounts(uint8_t& maxChUsers, uint8_t& enabledUsers, uint8_t& fixedUsers); +/** @brief function to update user enabled state + * + * @param[in] userId - user id + *..@param[in] state - state of the user to be updated, true - user enabled. + * + * @return IPMI_CC_OK for success, others for failure. + */ +ipmi_ret_t ipmiUserUpdateEnabledState(const uint8_t& userId, const bool& state); + /** @brief determines whether user is enabled * * @param[in] userId - user id |