[Moin-user] Auth woes
tw-public at gmx.de
Tue Jan 13 03:33:44 EST 2009
> from MoinMoin.auth.http import HTTPAuth
> class Config(DefaultConfig):
> auth = [HTTPAuth(autocreate=True)]
> but it didn't work. It just says, "You are not allowed to visit this
> page" and makes no attempt to authenticate.
This is a misunderstanding.
HTTPAuth is not made to DO http authentication itself, but to USE some
http auth done by the web server (e.g. apache with htpasswd).
> So I am at an utter loss. Any suggestions on how to proceed would be
> much appreciated. (BTW, what I'm actually trying to do is hook up to
> a user table stored in a MySQL database.)
You can do 2 things:
a) make mysql auth work on apache level and reuse it like HTTPAuth does
b) do mysql auth on the moin level by using some mysql auth plugin (look
at how ldap auth works)
There is some auth.mysql_group code in moin that checks against mysql
> I'm using version 1.8.0.
1.8.1 is out and has some bug fixes (not for auth iirc, but for some
More information about the Moin-user