summaryrefslogtreecommitdiffstats
path: root/user_channel/user_layer.cpp
diff options
context:
space:
mode:
authorRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2018-11-13 19:00:58 +0530
committerRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2018-11-20 11:33:52 +0530
commit282e79b49e6b36dac304b72ed0e9d065fb5b818c (patch)
tree511c6dbe5b5f7cfaed3247f1be5524874f65a828 /user_channel/user_layer.cpp
parentf4b2b090a4c67e132d4c22fdc13ecbb261c6147a (diff)
downloadphosphor-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.cpp')
-rw-r--r--user_channel/user_layer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/user_channel/user_layer.cpp b/user_channel/user_layer.cpp
index 3e4490c..5a4d7ad 100644
--- a/user_channel/user_layer.cpp
+++ b/user_channel/user_layer.cpp
@@ -109,6 +109,11 @@ ipmi_ret_t ipmiUserGetAllCounts(uint8_t& maxChUsers, uint8_t& enabledUsers,
return IPMI_CC_OK;
}
+ipmi_ret_t ipmiUserUpdateEnabledState(const uint8_t& userId, const bool& state)
+{
+ return getUserAccessObject().setUserEnabledState(userId, state);
+}
+
ipmi_ret_t ipmiUserCheckEnabled(const uint8_t& userId, bool& state)
{
if (!UserAccess::isValidUserId(userId))
OpenPOWER on IntegriCloud