This patch adds support for pam_faillock module into authconfig.
Three new options are implemented:
1. --enablefaillock (disabled by default)
2. --disablefaillock
3. --faillockargs (deny=4 unlock_time=1200 is the default)
The resulting stack inspired in the second example of pam_faillock manual page:
There might be some issues. I'm aware of two bugs that I was unable to solve:
USEFAILLOCK is not set in /etc/sysconfig/authconfig, however, the second option FAILLOCKARGS is set.
After running authconfig --enablefaillock --faillockargs="" --update (empty arguments), any successive call of authconfig --enablefaillock --update (no arg option specified) doesn't use the default value for arguments. It use an empty value instead.
This patch adds support for
pam_faillockmodule into authconfig.Three new options are implemented:
1.
--enablefaillock(disabled by default)2.
--disablefaillock3.
--faillockargs(deny=4 unlock_time=1200is the default)The resulting stack inspired in the second example of
pam_faillockmanual page:There might be some issues. I'm aware of two bugs that I was unable to solve:
USEFAILLOCKis not set in/etc/sysconfig/authconfig, however, the second optionFAILLOCKARGSis set.authconfig --enablefaillock --faillockargs="" --update(empty arguments), any successive call ofauthconfig --enablefaillock --update(no arg option specified) doesn't use the default value for arguments. It use an empty value instead.