freebsd-dev/contrib/blacklist/bin
Kurt Lidl 2495a63064 Reset failed login count to zero when removing a blocked address
The blacklistd daemon keeps records of failed login attempts for
each address:port that is flagged as a failed login.  When a
successful login occurs for that address:port combination,
the record's last update time is set to zero, to indicate no current
failed login attempts.

Reset the failed login count to zero, so that at the next failed
login attempt, the counting will restart properly at zero.  Without
this reset to zero, the first failed login after a successful login
will cause the address to be blocked immediately.

When debugging is turned on, output more information about database
state before and after the database updates have occured.

A similar patch has already been upstreamed to NetBSD.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2017-02-23 05:40:59 +00:00
..
blacklistctl.8 Bump dates in blacklist related manpages 2016-06-07 16:51:56 +00:00
blacklistctl.c Move misplaced break statement to right place 2016-06-08 11:58:03 +00:00
blacklistd.8 Update blacklistd.8 with changes from NetBSD 2016-09-30 16:31:12 +00:00
blacklistd.c Reset failed login count to zero when removing a blocked address 2017-02-23 05:40:59 +00:00
blacklistd.conf.5 Bump dates in blacklist related manpages 2016-06-07 16:51:56 +00:00
conf.c
conf.h
internal.c
internal.h
Makefile
run.c
run.h
state.c Fix blacklistd's state restoral at startup 2016-09-30 16:35:30 +00:00
state.h
support.c
support.h