Changeset

407:41feaf7fd8ac

mod_auth_log: New module (currently) to log failed auth attempts and their IP address, requires trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 30 Aug 2011 13:34:39 -0400
parents 406:a6d215c73c47
children 408:ee28af887507
files mod_log_auth/mod_log_auth.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mod_log_auth/mod_log_auth.lua	Tue Aug 30 13:34:39 2011 -0400
@@ -0,0 +1,4 @@
+
+module:hook("authentication-failure", function (event)
+	module:log("info", "Failed authentication attempt (%s) from IP: %s", event.condition, event.session.ip);
+end);