diff mod_log_auth/mod_log_auth.lua @ 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
children 608d9019b0de
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);