You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Aaron Dalton <aa...@daltons.ca> on 2007/09/05 17:19:14 UTC
Basic Auth
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?
Thank you for your time and patience.
--
Aaron Dalton | Super Duper Games
aaron@daltons.ca | http://superdupergames.org
Re: Basic Auth
Posted by Aaron Dalton <aa...@daltons.ca>.
Michael Peters wrote:
> 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_
>
>
*sighs* I knew it had to be something simple. I really did search too.
Thanks for your help...and your patience :)
--
Aaron Dalton | Super Duper Games
aaron@daltons.ca | http://superdupergames.org
Re: Basic Auth
Posted by Michael Peters <mp...@plusthree.com>.
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