No need for a module, just use $ENV{REMOTE_USER} variable, which will give you the 
currently logged in user.

Ilya

-----Original Message-----
From: Hardy Merrill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 11:59 AM
To: [EMAIL PROTECTED]
Subject: OT - Apache .htaccess auth - available to Perl?


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.

Reply via email to