aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi/roster.py
diff options
context:
space:
mode:
authorJim Popovitch <jimpop@domainmail.org>2018-06-06 10:06:19 +0000
committerJim Popovitch <jimpop@domainmail.org>2018-06-06 10:06:19 +0000
commitcd47d41512f99aff9eaaaaf6e796a34aa00fa8bf (patch)
tree11a9319cdd23a725293e77d7f7bbfe1712fe53e5 /Mailman/Cgi/roster.py
parent8291c814c54d87c7958304e471a5c5c013417e45 (diff)
downloadmailman2-cd47d41512f99aff9eaaaaf6e796a34aa00fa8bf.tar.gz
mailman2-cd47d41512f99aff9eaaaaf6e796a34aa00fa8bf.tar.xz
mailman2-cd47d41512f99aff9eaaaaf6e796a34aa00fa8bf.zip
Improved logging of security related events
Diffstat (limited to 'Mailman/Cgi/roster.py')
-rw-r--r--Mailman/Cgi/roster.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mailman/Cgi/roster.py b/Mailman/Cgi/roster.py
index 739d4fff..88391997 100644
--- a/Mailman/Cgi/roster.py
+++ b/Mailman/Cgi/roster.py
@@ -118,6 +118,11 @@ def main():
error_page_doc(doc, _('%(realname)s roster authentication failed.'))
doc.AddItem(mlist.GetMailmanFooter())
print doc.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 (roster): list=%s: remote=%s', listname, remote)
return
# The document and its language