diff options
author | Jim Popovitch <jimpop@domainmail.org> | 2018-06-06 10:06:19 +0000 |
---|---|---|
committer | Jim Popovitch <jimpop@domainmail.org> | 2018-06-06 10:06:19 +0000 |
commit | cd47d41512f99aff9eaaaaf6e796a34aa00fa8bf (patch) | |
tree | 11a9319cdd23a725293e77d7f7bbfe1712fe53e5 /Mailman/Cgi/edithtml.py | |
parent | 8291c814c54d87c7958304e471a5c5c013417e45 (diff) | |
download | mailman2-cd47d41512f99aff9eaaaaf6e796a34aa00fa8bf.tar.gz mailman2-cd47d41512f99aff9eaaaaf6e796a34aa00fa8bf.tar.xz mailman2-cd47d41512f99aff9eaaaaf6e796a34aa00fa8bf.zip |
Improved logging of security related events
Diffstat (limited to 'Mailman/Cgi/edithtml.py')
-rw-r--r-- | Mailman/Cgi/edithtml.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Mailman/Cgi/edithtml.py b/Mailman/Cgi/edithtml.py index d3d04a31..69421688 100644 --- a/Mailman/Cgi/edithtml.py +++ b/Mailman/Cgi/edithtml.py @@ -126,6 +126,11 @@ def main(): if cgidata.has_key('admlogin'): # This is a re-authorization attempt msg = Bold(FontSize('+1', _('Authorization failed.'))).Format() + remote = os.environ.get('HTTP_FORWARDED_FOR', + os.environ.get('HTTP_X_FORWARDED_FOR', + os.environ.get('REMOTE_ADDR', + 'unidentified origin'))) + syslog('security', 'Authorization failed (edithtml): list=%s: remote=%s', listname, remote) else: msg = '' Auth.loginpage(mlist, 'admin', msg=msg) |