aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi/rmlist.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2018-12-30 09:40:15 -0800
committerMark Sapiro <mark@msapiro.net>2018-12-30 09:40:15 -0800
commit189515c4d3f1ed52b83d63577ebefec5c991b281 (patch)
tree521707fb0634f57a6ec087b3476b25cee05d1693 /Mailman/Cgi/rmlist.py
parent3567095f4208f3aafce171fd5be2bfa8f5c37088 (diff)
downloadmailman2-189515c4d3f1ed52b83d63577ebefec5c991b281.tar.gz
mailman2-189515c4d3f1ed52b83d63577ebefec5c991b281.tar.xz
mailman2-189515c4d3f1ed52b83d63577ebefec5c991b281.zip
Corrected and augmented some security log messages.
Diffstat (limited to 'Mailman/Cgi/rmlist.py')
-rw-r--r--Mailman/Cgi/rmlist.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mailman/Cgi/rmlist.py b/Mailman/Cgi/rmlist.py
index 4472c1c5..4c37a15d 100644
--- a/Mailman/Cgi/rmlist.py
+++ b/Mailman/Cgi/rmlist.py
@@ -127,6 +127,13 @@ def process_request(doc, cgidata, mlist):
mm_cfg.AuthListAdmin,
mm_cfg.AuthSiteAdmin),
password) == mm_cfg.UnAuthorized:
+ 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 (rmlist): list=%s: remote=%s',
+ mlist.internal_name(), remote)
request_deletion(
doc, mlist,
_('You are not authorized to delete this mailing list'))