summaryrefslogtreecommitdiff
path: root/Mailman/Defaults.py.in
diff options
context:
space:
mode:
authorbwarsaw2001-05-31 15:52:23 +0000
committerbwarsaw2001-05-31 15:52:23 +0000
commitd625f4709d6f9772a56d657fad02430e4e161825 (patch)
tree9dc25cb8cd963ef34e0de6b9ca02edcc5410744f /Mailman/Defaults.py.in
parent3a72fe448ea4a616eb69a012fed178a155d1f205 (diff)
downloadmailman-d625f4709d6f9772a56d657fad02430e4e161825.tar.gz
mailman-d625f4709d6f9772a56d657fad02430e4e161825.tar.zst
mailman-d625f4709d6f9772a56d657fad02430e4e161825.zip
New user configurable variables, for control of the (non-templated)
web UI colors: WEB_BGCOLOR WEB_HEADERCOLOR WEB_ADMINITEM_COLOR WEB_ADMINPW_COLOR ADMIN_COOKIE_LIFE is removed. We now only support session cookies. New authentication role variables: UnAuthorized AuthUser AuthCreator AuthListAdmin AuthListModerator AuthSiteAdmin With an explanation of what each role is for. Code will glom together sequences of authentication roles when they want to do a web-authentication. This essentially specifies which passwords/cookies will be accepted for a particular task.
Diffstat (limited to 'Mailman/Defaults.py.in')
-rw-r--r--Mailman/Defaults.py.in53
1 files changed, 46 insertions, 7 deletions
diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in
index 296c6db7b..c2df2f975 100644
--- a/Mailman/Defaults.py.in
+++ b/Mailman/Defaults.py.in
@@ -62,6 +62,28 @@ MAILMAN_OWNER = 'mailman-owner@%s' % DEFAULT_HOST_NAME
#####
+# Web UI defaults
+#####
+
+# The various colors for the cgi scripts
+
+# This is the background color for all the scripts
+WEB_BGCOLOR = '#ffffff'
+
+# This is the color for the section headers in the admin script
+WEB_HEADERCOLOR = '#99ccff'
+
+# This is the background color of the cells in the admin script option
+# settings
+WEB_ADMINITEM_COLOR = '#dddddd'
+
+# This is the background color of the cells in the "change the admin password"
+# boxes
+WEB_ADMINPW_COLOR = '#99cccc'
+
+
+
+#####
# Archive defaults
#####
@@ -488,13 +510,6 @@ LIKELY_BOUNCE_SENDERS = ('daemon', 'mailer-daemon', 'postmaster',
# General time limits
#####
-# Authentication cookie control. When set to 0, Mailman's admin cookie
-# expires at the end of your session. This is preferred for security reasons,
-# and to avoid potential problems with incorrect clock and timezone settings.
-# Set this to a value > 0 to use persistent admin cookies with a lifetime of
-# that number of seconds.
-ADMIN_COOKIE_LIFE = 0
-
# How long should subscriptions requests await confirmation before being
# dropped?
PENDING_REQUEST_LIFE = days(3)
@@ -593,6 +608,30 @@ DisableMime = 8 # Digesters only
ConcealSubscription = 16
SuppressPasswordReminder = 32 # currently, per-list unfortunately
+# Authentication contexts.
+#
+# Mailman defines the following roles:
+
+# - User, a normal user who has no permissions except to change their personal
+# option settings
+# - List creator, someone who can create and delete lists, but cannot
+# (necessarily) configure the list.
+# - List moderator, someone who can tend to pending requests such as
+# subscription requests, or held messages
+# - List administrator, someone who has total control over a list, can
+# configure it, modify user options for members of the list, subscribe and
+# unsubscribe members, etc.
+# - Site administrator, someone who has total control over the entire site and
+# can do any of the tasks mentioned above. This person usually also has
+# command line access.
+
+UnAuthorized = 0
+AuthUser = 1 # Joe Shmoe User
+AuthCreator = 2 # List Creator / Destroyer
+AuthListAdmin = 3 # List Administrator (total control over list)
+AuthListModerator = 4 # List Moderator (can only handle held requests)
+AuthSiteAdmin = 5 # Site Administrator (total control over everything)
+
# Useful directories
LIST_DATA_DIR = os.path.join(VAR_PREFIX, 'lists')
HTML_DIR = os.path.join(PREFIX, 'public_html')