diff options
author | Mark Sapiro <mark@msapiro.net> | 2018-12-30 09:40:15 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2018-12-30 09:40:15 -0800 |
commit | 189515c4d3f1ed52b83d63577ebefec5c991b281 (patch) | |
tree | 521707fb0634f57a6ec087b3476b25cee05d1693 /Mailman/Cgi/create.py | |
parent | 3567095f4208f3aafce171fd5be2bfa8f5c37088 (diff) | |
download | mailman2-189515c4d3f1ed52b83d63577ebefec5c991b281.tar.gz mailman2-189515c4d3f1ed52b83d63577ebefec5c991b281.tar.xz mailman2-189515c4d3f1ed52b83d63577ebefec5c991b281.zip |
Corrected and augmented some security log messages.
Diffstat (limited to 'Mailman/Cgi/create.py')
-rw-r--r-- | Mailman/Cgi/create.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Mailman/Cgi/create.py b/Mailman/Cgi/create.py index ebb211ae..d72e6967 100644 --- a/Mailman/Cgi/create.py +++ b/Mailman/Cgi/create.py @@ -162,6 +162,13 @@ def process_request(doc, cgidata): if not ok: ok = Utils.check_global_password(auth) if not ok: + 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 (create): list=%s: remote=%s', + listname, remote) request_creation( doc, cgidata, _('You are not authorized to create new mailing lists')) |