[medusa] drop in medusa?

Sam Rushing rushing@n...
Mon, 30 Aug 1999 03:34:29 -0700 (PDT)


cmenzel@s... writes:
> I administer a site running apache with basic .htaccess authorization.
> I would like to 'drop in' medusa but need to use the existing htaccess/
> htpasswd files already in place. Is there a module to use or is this
> built into medusa?

The best approach depends on how you are using .htaccess files. If
you have a site with thousands of users maintaining their own .htaccess 
files, then you'll probably want a specialized handler that looks for
these and parses them on the fly.

If on the other hand you have a simple global password file I would
suggest ignoring .htaccess itself (and writing a simple
dictionary-interface wrapper for the actual password file - see how
unix authentication is done in ftp_server.py).

If someone else declares interest in this I will throw together a
quick htpasswd-based auth handler.

-Sam