Authentication: fake_userdb.pike

First, a disclaimer: This is my first Roxen module ever, and it might contain solutions that appear... well... sub-optimal to an experienced Pike hacker. If you spot things that can be done in a more clever/less stupid way, please let me know.

The fake_userdb module fakes a user database(!) from a directory hierarchy in a filesystem. Assume that I have a set of user directories from an NT server mounted:

The module will behave like a user database, mapping usernames to home directories:

This doesn't seem to be that much, but this is where the rest of Roxen can shine. Using the modules of the default distribution, you can easily give all of your NT users their own directory for incomming or outgoing files. Everything stays on the server where you propably already have backup and anti-virus taken care of (if you haven't, you should.).

You can include/exclude users based on regexps.

You can get a copy of it here: fake_userdb.pike (2005-09-02)