Refactor executeCmd calls to pam_tally2

executeCmd() will throw and errors need to be caught. And the command
output in set handler of UserLockedForFailedAttempt is not used, remove
it.

Tested:
Verified setting UserLockedForFailedAttempt to false resets the login
failed attempts counter in pam_tally2, and get that value returns if
the user's login failed attempts exceeds MaxLoginAttemptBeforeLockout.

Change-Id: Ie50749c99667e4041189e8c9aebbe33961509f05
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
1 file changed