Apache Server configuration support - How to retrieve $ENV{REMOTE_USER} when connecting to apache server

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > September 2007 > How to retrieve $ENV{REMOTE_USER} when connecting to apache server





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to retrieve $ENV{REMOTE_USER} when connecting to apache server
CS student

2007-09-10, 1:18 pm

Hi,

I need it for knowing which Windows user is connecting to the apache
server, that is installed on Suse OS.

I can't retrieve the environment variable $ENV{REMOTE_USER} in my perl/
cgi script, when connecting to the server from IE browser on Windows.

The value being returned is a null text "".

I know that in some servers it is working, but in my server it does
not.

Can you please tell me how to configure my server so it will work.

Thanks a lot

Mark Taylor

2007-09-10, 1:18 pm

CS student <israelaix@hotmail.com> wrote in news:1189431875.266027.317950
@r29g2000hsg.googlegroups.com:

> Hi,
>
> I need it for knowing which Windows user is connecting to the apache
> server, that is installed on Suse OS.
>
> I can't retrieve the environment variable $ENV{REMOTE_USER} in my perl/
> cgi script, when connecting to the server from IE browser on Windows.
>
> The value being returned is a null text "".
>
> I know that in some servers it is working, but in my server it does
> not.
>
> Can you please tell me how to configure my server so it will work.
>
> Thanks a lot
>
>


REMOTE_USER is only set if access authentication is turned on.

See if $ENV(REMOTE_HOST) works for you if you are not using authentication.





----== Posted via webservertalk.com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.webservertalk.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
CS student

2007-09-11, 7:21 am

Hi,
Without using authentication, i can see: REMOTE_ADDR and REMOTE_PORT
Is there a way to know the REMOTE_USER without using authentication?
I'm asking since i'm not interested in the user's password, and i
don't want to maintain users DB/lists for authentication due to
overhead.

Thanks a lot

Mark Taylor wrote:
> CS student <israelaix@hotmail.com> wrote in news:1189431875.266027.317950
> @r29g2000hsg.googlegroups.com:
>
>
> REMOTE_USER is only set if access authentication is turned on.
>
> See if $ENV(REMOTE_HOST) works for you if you are not using authentication.
>
>
>
>
>
> ----== Posted via webservertalk.com - Unlimited-Unrestricted-Secure Usenet News==----
> http://www.webservertalk.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption =----


Mark

2007-09-11, 1:20 pm

CS student <israelaix@hotmail.com> wrote in
news:1189501680.238433.111030@g4g2000hsf.googlegroups.com:

> Hi,
> Without using authentication, i can see: REMOTE_ADDR and REMOTE_PORT
> Is there a way to know the REMOTE_USER without using authentication?
> I'm asking since i'm not interested in the user's password, and i
> don't want to maintain users DB/lists for authentication due to
> overhead.
>
> Thanks a lot
>
> Mark Taylor wrote:
>
>


No. It is the authentication module that sets REMOTE_USER. You must use
authentication to see it.


--

----== Posted via webservertalk.com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.webservertalk.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
HansH

2007-09-11, 7:21 pm

"Mark" <mtaylor*@*lrim.com> schreef in bericht
news:1189515874_3681@sp6iad.superfeed.net...[vbcol=seagreen]
> CS student <israelaix@hotmail.com> wrote in
> news:1189501680.238433.111030@g4g2000hsf.googlegroups.com:
Unsure about your platform and networkt, still try your luck at
http://modntlm.sourceforge.net/.

HansH


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com