[medusa] Re: drop in medusa? (original) (raw)

cmenzel@s... cmenzel@s...
Mon, 30 Aug 1999 12:36:18 -0700


cmenze-@s... wrote: original article:http://www.egroups.com/group/medusa/?start=72

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 ftpserver.py). If someone else declares interest in this I will throw together a quick htpasswd-based auth handler. -Sam

Hi Sam, I think I get it! Maintain the .htpasswd file with a Python module. It is the same idea as maintaining it with the shell script that I use now. I am new to Python but will try to write the wrapper.

Thanks, Chris