more useful options | |
PerlMonks |
Re: Application Access Controlby jeorgen (Pilgrim) |
on Sep 24, 2001 at 16:44 UTC ( [id://114301]=note: print w/replies, xml ) | Need Help?? |
There are a number of ways of implementing users and groups in Perl scripts. By using Lincoln Stein's user_manage you can tie it into Apache's authentication system, and use .htpasswd files or a database as a backend, among other options. In this way you get the following benefits:
1) You get one user management system valid both for cgi<->database scripts and html files (with .htaccess files in the protected directories for html files) 2) You get a ready-made management user interface in user_manage to manage users and groups, user_manage also allows you to store more items for each user than name and passwd. Here is some code, taken largely from the POD, that implements an authentication system with Apache's htpasswd system in a perl script. (I'm working on it right now so /msg me if you want some session handling code, how to get groups, etc..).
/jeorgen
In Section
Seekers of Perl Wisdom
|
|