aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi/admin.py
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2018-06-13 17:22:47 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2018-06-13 17:22:47 +0900
commitf9ad5c209b47c5b4677f5f6678667049ceea9baf (patch)
tree07359919522b45c79abe1648fb8e6b995cb7cc7a /Mailman/Cgi/admin.py
parentf4212b4845d8f5d1e3bb1cd5271f49e4641a3051 (diff)
parentd4bf95bd97ebaeebb5291c4f7d9f1d90ff7414fd (diff)
downloadmailman2-f9ad5c209b47c5b4677f5f6678667049ceea9baf.tar.gz
mailman2-f9ad5c209b47c5b4677f5f6678667049ceea9baf.tar.xz
mailman2-f9ad5c209b47c5b4677f5f6678667049ceea9baf.zip
merge lp:mailman/2.1 up to rev 1770
Diffstat (limited to 'Mailman/Cgi/admin.py')
-rw-r--r--Mailman/Cgi/admin.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py
index eeefc056..174cf34f 100644
--- a/Mailman/Cgi/admin.py
+++ b/Mailman/Cgi/admin.py
@@ -119,6 +119,13 @@ def main():
if cgidata.has_key('adminpw'):
# 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 (admin): list=%s: remote=%s',
+ listname, remote)
else:
msg = ''
Auth.loginpage(mlist, 'admin', msg=msg)