[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Basic Auth


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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.