Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello!

I am swamped! This is the only reason that I do not want to roll my own on this - promise to a friend which is being called at a most inopportune time and all that.. . I need to make a quick app to allow 2 tier authentication to a website. The situation:

There are many clients, each with many users. Each user gets a directory, which has a listing. This must be password protected. The admin function is simply user management - adding deleting modifying users. I don't have access to a db, and I have to use cgi, not mod_perl (that would be too easy :) Does anyone know where I could find a pre-packaged-trim to fit type of thing to do this? Please?

Replies are listed 'Best First'.
Re: Quickie web based non db auth module
by asmodai (Novice) on Mar 07, 2001 at 17:36 UTC

    Go to Freshmeat (http://www.freshmeat.net/) and search for webmin and have a look through it's source code.

    HTH,

    --Jeroen/Asmodai

Re: Quickie web based non db auth module
by Caillte (Friar) on Mar 07, 2001 at 19:16 UTC

    You say you have no access to a database program, but how about using something like DBD::CSV? As this works on text files this will give you all the database connectivity and robustness without having to install a database program.

    $japh->{'Caillte'} = $me;

Re: Quickie web based non db auth module
by sierrathedog04 (Hermit) on Mar 07, 2001 at 21:51 UTC
    Are you running Apache? If so then it sounds as if all you want to do is modify the .passwd, .htgroup and .htaccess text files which Apache uses to add and remove users and to control access.

    In that case I heartily recommend the Htpasswd, Htaccess and Rich Bowen's Htgroup modules.

    These modules are much easier to install than Lincoln Stein's user_manage module that does the same tasks and more.

    I might mention that Rich Bowen provided me with incredible user support for his Htgroup module. When I wrote to him and mentioned I was going to write an extension to the module, he went ahead and wrote it himself in about a day! Then when the new module would not compile on my prehistoric NCR MP-RAS machine he suggested a change to the source to get it to compile (and integrated the change into a new bug-fix release.)

    My experience with these modules, all of which work, makes me more of a believer in the open source movement. Would Microsoft or Sun have provided me with that quality of service?