LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Edward Sawma <e-sawma@nwu.edu>
To : ">"Nour Douchi" , linuxsa@linuxsa.org.au
Date: Sun, 28 Nov 1999 23:19:24 -0600
Re: apache basic authentication user name retrieval
It's stored in the "REMOTE_USER" environment variable, that you can
retrieve if you're executing a CGI. For example, this is how you'd do it in
Perl:
my $remoteuser = $ENV{'REMOTE_USER'};
That would store it in the variable "remoteuser" in your Perl script.
-Ed
At 10:30 PM 11/28/99 -0600, Nour Douchi wrote:
>Good morning.. Perhaps Good afternoon for you, folks of .au emails... I
>couldn't find in the Apache book anything about how to retrieve the name
>of a user entered when prompted by a page that is secured via the basic
>authentication scheme in Apache.. All I know is that apache somehow gets
>that user name and password and compares it to the pairs in .htpasswd and
>.htgroup files, but if I want to know who it is that just logged in, how
>do I do it?
>Thak you, folks
>Nour
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>
>--
>LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
>To unsubscribe from the LinuxSA list:
> mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
>
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page