You should be able access the user name entered through apache
authentication by accessing the CGI variable REMOTE_USER or
AUTH_USER. (REMOTE_USER is an environment variable as well so you could use
$username = $ENV{'REMOTE_USER'};
HTH
John
At 08:58 AM 10/8/2002, you wrote:
>I know this is OT, so please no flames - I'm only asking here
>since I'm fairly sure someone will have the answer, and because
>asking on Google groups takes hours for an answer.
>
>For an app, I'm using Apache .htaccess authentication under
>mod_perl - Apache pops up the basic authentication box asking
>for user name and password, which is compared against an entry
>in a specified filesystem file on the webserver. Is there a
>way(module?) in Perl, or mod_perl, to know who logged in when
>the webserver uses .htaccess authentication?
>
>TIA.
>
>--
>Hardy Merrill
>Senior Software Engineer
>Red Hat, Inc.
<>< Proverbs 3:5 "Trust in the Lord with all your heart and lean not on
your own understanding;"