On Sunday 10 Apr 2011 10:10:34 sawyer x wrote:
> On Sun, Apr 10, 2011 at 8:43 AM, Shlomit Afgin
> <[email protected]
> 
> > wrote:
> >  Hi,
> 
> Hi Shlomit!
> 
> >    I want to build a script that only authenticate users can access.
> > 
> > The authentication I want to use is Apache  authentication.
> > 
> > During the script I need to know the exact person that login.
> > 
> >  Is there any environment variable that keep this information?
> 
> $ENV{'REMOTE_USER'}
> 
> :)

I should note that CGI.pm ( http://search.cpan.org/dist/CGI/ ) has a method 
called remote_user() for that, and that there are likely similar API functions 
in Plack ( http://search.cpan.org/dist/Plack/ ) and in similar web APIs.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
What Makes Software Apps High Quality -  http://shlom.in/sw-quality

If you have the same ideas as everybody else, but have them one week earlier
than everyone else - then you will be hailed as a visionary. But if you have
them five years earlier, you will be named a lunatic. ( Barry Jones )

Please reply to list if it's a mailing list post - http://shlom.in/reply .
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to