bf663cc26b
responsible for repeated failed authentication attempts. WWW: http://www.hexten.net/pam_abl/ PR: ports/100635 Submitted by: Petr Rehor <prehor@gmail.com>
25 lines
492 B
Bash
25 lines
492 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# Purge pam_abl databases according to purge rules in config.
|
|
#
|
|
|
|
# If there is a global system configuration file, suck it in.
|
|
#
|
|
if [ -r /etc/defaults/periodic.conf ]; then
|
|
. /etc/defaults/periodic.conf
|
|
source_periodic_confs
|
|
fi
|
|
|
|
case "$daily_clean_pam_abl_enable" in
|
|
[Yy][Ee][Ss])
|
|
echo ""
|
|
echo "Purging pam_abl databases:"
|
|
|
|
%%PREFIX%%/sbin/pam_abl -p -v ${daily_clean_pam_abl_config_file}
|
|
[ $? -ne 0 ] && rc=3 || rc=0;;
|
|
*) rc=0;;
|
|
esac
|
|
|
|
exit $rc
|