Edgewall Software
Home
Trac
Trac Hacks
Genshi
Babel
Bitten
Home
Download
Documentation
Mailing Lists
License
FAQ
Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
Browse Source
View Tickets
New Ticket
Search
Context Navigation
-1
Start Page
Index
History
Editing CookBook/Configuration/MailmanAuth
Adjust edit area height:
8
12
16
20
24
28
32
36
40
Edit side-by-side
= How to use Mailman as a source of authentication Kudos to Christopher Gabriel for his [http://www.cgabriel.org/2009/09/21/ldap-e-la-disperazione/ original idea]. [https://www.gnu.org/software/mailman/ Mailman] can be used as a source of authentication for Trac. This is super handy, as it allows to have a single sign-on between the two. This page describes how to set this up. First, please install [https://httpd.apache.org/docs/2.4/mod/mod_macro.html mod_macro] and mod_python, and add `www-data` to the group `list`. Apache 2.4 or later is needed to use mod_macro. An Apache macro needs to be defined as follows: {{{#!apache <Macro PrivateProjectMailman $name $list> <Location /svn/$name> AuthName "$name" AuthType Basic PythonPath "sys.path+['/etc/apache2/']" PythonAuthenHandler mailauth PythonOption MailmanList $list AuthUserFile /dev/null AuthBasicAuthoritative Off require valid-user </Location> <Location "/$name"> AuthName "$name" AuthType Basic PythonPath "sys.path+['/etc/apache2/']" PythonAuthenHandler mailauth PythonOption MailmanList $list AuthUserFile /dev/null AuthBasicAuthoritative Off require valid-user </Location> </Macro> <Macro PublicProjectMailman $name $list> <Location /svn/$name> <LimitExcept GET PROPFIND OPTIONS REPORT> AuthName "$name" AuthType Basic PythonPath "sys.path+['/etc/apache2/']" PythonAuthenHandler mailauth PythonOption MailmanList $list AuthUserFile /dev/null AuthBasicAuthoritative Off require valid-user </LimitExcept> </Location> <Location "/$name/login"> AuthName "$name" AuthType Basic PythonPath "sys.path+['/etc/apache2/']" PythonAuthenHandler mailauth PythonOption MailmanList $list AuthUserFile /dev/null AuthBasicAuthoritative Off require valid-user </Location> </Macro> }}} Then, in the relative !VirtualHost add the following: {{{#!apache Use PrivateProjectMailman progetto-x lista-progetto-x }}} or: {{{#!apache Use PublicProjectMailman progetto-x lista-progetto-x }}} And you are done.
Note:
See
WikiFormatting
and
TracWiki
for help on editing wiki content.
Change information
Your email or username:
E-mail address and name can be saved in the
Preferences
Comment about this change (optional):
Note:
See
TracWiki
for help on using the wiki.