perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Peters <mpet...@plusthree.com>
Subject Re: Basic Auth
Date Wed, 05 Sep 2007 15:29:41 GMT
Aaron Dalton wrote:
> I have done some Googling, but can't seem to find an answer to what
> appears to me to be a pretty straightforward question.  I am running
> Apache 2.2.4 with SSL and mod_perl.  I have a virtual host protected by
> Basic Auth.  That host is managed by a home-rolled, mod_perl handler.  I
> want my handler to have access to the username provided when the user
> authenticated.  I thought what I wanted was $r->get_remote_logname(),
> but that's not working.  How do I obtain this information?

use Apache::RequestRec;
$r->user;

http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_user_


-- 
Michael Peters
Developer
Plus Three, LP


Mime
View raw message