# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1314725679 14400
# Node ID 41feaf7fd8ac4f7f46049915406cf3358162d395
# Parent  a6d215c73c47f9176df7d316aa7f2231661b8763
mod_auth_log: New module (currently) to log failed auth attempts and their IP address, requires trunk

diff -r a6d215c73c47 -r 41feaf7fd8ac mod_log_auth/mod_log_auth.lua
--- /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);