[Mailman-Users] Using mailman usernames and passwords as apache2auth

Mark Sapiro msapiro at value.net
Sat Oct 1 20:33:39 CEST 2005

The Doctor What wrote:
>Is there a way to have apache2 Auth* directives query username and
>password from mailman?
>I was imagining something like:
><Location /foo>
>   AuthType Basic
>   AuthName "Some service"
>   AuthMailManList FooList
>   require valid-user

I doubt it is that simple, but I don't know very much about Apache.

>  but
>  mailman *has* all this code and the database of users is nearly
>  the same, if not the same.  So why write duplicate code to
>  duplicate the data!

The MailList object has an attribute 'passwords' which is a dictionary
with member's e-mail address as key and plain text password as data,
or given any membership database, the MemberAdaptor has a
getMemberPassword(member) method which returns the password for member.

Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list