>>>>> "JRA" == Jay R Ashworth <[EMAIL PROTECTED]> writes:

    JRA> I can't imagine that hooking the Mailman auth code could be
    JRA> *that* difficult...

It's not, if you can hack a little Python.  Here's a bit of untested
code to get you started.  Note: you must have the Mailman package's
parent directory on your PYTHONPATH (aka sys.path).

-Barry

-------------------- snip snip --------------------
from Mailman import Errors
from Mailman.MailList import MailList

def authenticate(listname, address, response):
    """Return true if the response authenticates the address as a
    member of the named mailing list (i.e. response == the correct
    password).
    """
    # Might raise MMListError if listname doesn't exist
    mlist = MailList(listname, lock=0)
    # Might raise NotAMember if address isn't a member
    secret = mlist.authenticateMember(address, response)
    if secret:
        return 1
    return 0

_______________________________________________
Mailman-Developers mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-developers

Reply via email to