summaryrefslogtreecommitdiffstats
path: root/user_channel/user_layer.cpp
diff options
context:
space:
mode:
authorAppaRao Puli <apparao.puli@intel.com>2018-05-17 10:28:48 +0530
committerRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2018-11-13 11:26:09 +0530
commitb29b5ab3b9ad812949f3621a4422fde8d7c1c8d2 (patch)
treee25e81565b04c8513af25e3ad7376a03a685cdbb /user_channel/user_layer.cpp
parent4654d99fda30800024c56b085ec9dcf2ac26c417 (diff)
downloadphosphor-host-ipmid-b29b5ab3b9ad812949f3621a4422fde8d7c1c8d2.tar.gz
phosphor-host-ipmid-b29b5ab3b9ad812949f3621a4422fde8d7c1c8d2.zip
Handling delete password entry from ipmi-pass
API to Handle the delete password entry from ipmi-pass encrypted file when user gets deleted by any interface Change-Id: I692a81b166b53d6fc981fdb85ce5d6980887560b Signed-off-by: AppaRao Puli <apparao.puli@intel.com> 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.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/user_channel/user_layer.cpp b/user_channel/user_layer.cpp
index dce33d9..ed99137 100644
--- a/user_channel/user_layer.cpp
+++ b/user_channel/user_layer.cpp
@@ -29,4 +29,10 @@ std::string ipmiUserGetPassword(const std::string& userName)
return passwdMgr.getPasswdByUserName(userName);
}
+ipmi_ret_t ipmiUserClearPassword(const std::string& userName)
+{
+ passwdMgr.clearUserEntry(userName);
+ return IPMI_CC_OK;
+}
+
} // namespace ipmi
OpenPOWER on IntegriCloud