summaryrefslogtreecommitdiffstats
path: root/user_mgr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'user_mgr.hpp')
-rw-r--r--user_mgr.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/user_mgr.hpp b/user_mgr.hpp
index b599724..c1673f1 100644
--- a/user_mgr.hpp
+++ b/user_mgr.hpp
@@ -126,6 +126,21 @@ class UserMgr : public UserMgrIface, AccountPolicyIface
*/
uint32_t accountUnlockTimeout(uint32_t val) override;
+ /** @brief lists user locked state for failed attempt
+ *
+ * @param[in] - user name
+ * @return - true / false indicating user locked / un-locked
+ **/
+ bool userLockedForFailedAttempt(const std::string &userName);
+
+ /** @brief lists user locked state for failed attempt
+ *
+ * @param[in]: user name
+ * @param[in]: value - false -unlock user account, true - no action taken
+ **/
+ bool userLockedForFailedAttempt(const std::string &userName,
+ const bool &value);
+
private:
/** @brief sdbusplus handler */
sdbusplus::bus::bus &bus;
OpenPOWER on IntegriCloud