in reply to Searching database for username

This is a web application, right? For basic web authentication you may use .htaccess, described here. (off site link).

For dealing with account information per user, you may need to dig in a little deeper, actually learning Perl (or an other suitable language for CGI programming).

If you need help on some aspect of writing an access tool in Perl, let us know which step along the way you're hung up on. I would start by reading the documentation for CGI, and CGI::Session.


Dave

Replies are listed 'Best First'.
Re^2: Searching database for username
by Thilosophy (Curate) on Nov 30, 2004 at 06:43 UTC
    This is a web application, right? For basic web authentication you may use .htaccess

    Good call. This way, you do not have to bother with authentication at all, as this will be handled by the web server. The downside is that you have no way to influence how the authentication dialog looks (the user's browser will produce one), but maybe this is not so important.

    Once you protect your CGI script with basic web authentication, you can retrieve the user ID like this:

    my $q = new CGI; my $userid = $q->remote_user;