1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
The GDBMuserDB module is a Roxen authentication module.
It is designed to work with roxen/1.2 or later.
It is pretty straightforward, really.
It is meant primarily to drive a WWW server which needs to keep an huge users
database, like Apache's DBM userdatabase. Those users won't usually have
a regular account on the host, and typically you will be interested only
in username and password. If you want to drive an user filesystem, you're
going to need to know where the users' home directory is, and I have
been suggested to add information on the login shell as well. So here it is.
The database format is explained in the source code itself.
The "gdbmpasswd.pike" script is a tool to administer such a database.
For fun, I designed it to handle two different interfaces: you can use
it from the command line (an help-function is provided) and you can use it
as a Roxen pike script. It will use an HTTP cookie to configure itself.
User security is left to the site administrator (that means: be sure to set your
.www_acl or .htaccess file properly if you're going to use it).
It's not hyper-optimized, and it's not nice. But it seems to work, and it was
kinda fun to design (but I don't think I'd do it again - for free that is :)
I hope you'll find this useful,
Francesco.
|