diff options
author | Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> | 2018-06-13 16:51:00 +0530 |
---|---|---|
committer | Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> | 2018-10-09 03:19:19 +0530 |
commit | c704519ef29cf46473eddb670f311eead83c357d (patch) | |
tree | 2dc5357933c6756d5ebd3431e1a2143d871e4474 /user_mgr.hpp | |
parent | 9164fd9b15e7af88e8b80c7ed7dad45266327a57 (diff) | |
download | phosphor-user-manager-c704519ef29cf46473eddb670f311eead83c357d.tar.gz phosphor-user-manager-c704519ef29cf46473eddb670f311eead83c357d.zip |
Add support for user locked state property
Support for user locked state property using
pam_tally2 application added.
Change-Id: Ia77ff6527c15c93ac272110950e99fff56dcbaa6
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'user_mgr.hpp')
-rw-r--r-- | user_mgr.hpp | 15 |
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; |