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

This is a discussion on How to retrieve $ENV{REMOTE_USER} when connecting to apache server within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I need it for knowing which Windows user is connecting to the apache server, that is installed on Suse ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-10-2007
CS student
 
Posts: n/a
Default How to retrieve $ENV{REMOTE_USER} when connecting to apache server

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

  #2 (permalink)  
Old 09-10-2007
Mark Taylor
 
Posts: n/a
Default Re: How to retrieve $ENV{REMOTE_USER} when connecting to apache server

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 Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  #3 (permalink)  
Old 09-11-2007
CS student
 
Posts: n/a
Default Re: How to retrieve $ENV{REMOTE_USER} when connecting to apache server

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:
>
> > 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 Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
> http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption =----


  #4 (permalink)  
Old 09-11-2007
Mark
 
Posts: n/a
Default Re: How to retrieve $ENV{REMOTE_USER} when connecting to apache server

CS student <israelaix@hotmail.com> wrote in
news:1189501680.238433.111030@g4g2000hsf.googlegro ups.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:
>> 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 Newsfeeds.Com - Unlimited-Unrestricted-Secure
>> Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service
>> in the World! 120,000+ Newsgroups ----= East and West-Coast Server
>> Farms - Total Privacy via Encryption =----

>
>


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


--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  #5 (permalink)  
Old 09-11-2007
HansH
 
Posts: n/a
Default Re: How to retrieve $ENV{REMOTE_USER} when connecting to apache server

"Mark" <mtaylor*@*lrim.com> schreef in bericht
news:1189515874_3681@sp6iad.superfeed.net...
> CS student <israelaix@hotmail.com> wrote in
> news:1189501680.238433.111030@g4g2000hsf.googlegro ups.com:
>>> > 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.
>>> REMOTE_USER is only set if access authentication is turned on.
>>>

Unsure about your platform and networkt, still try your luck at
http://modntlm.sourceforge.net/.

HansH


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:27 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0