freebsd-ports/security/pam_abl/files/190.clean-pam-abl.in
Pav Lucistnik bf663cc26b The pam_abl provides auto blacklisting of hosts and users
responsible for repeated failed authentication attempts.

WWW: http://www.hexten.net/pam_abl/

PR:		ports/100635
Submitted by:	Petr Rehor <prehor@gmail.com>
2006-09-01 18:34:03 +00:00

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