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

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

am 10.09.2007 15:44:35 von CS student

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

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

am 10.09.2007 18:30:10 von Mark Taylor

CS student 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 =----

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

am 11.09.2007 11:08:00 von CS student

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 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 =----

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

am 11.09.2007 15:04:34 von mark

CS student 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:
>> CS student 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 =----

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

am 11.09.2007 23:54:39 von HansH

"Mark" schreef in bericht
news:1189515874_3681@sp6iad.superfeed.net...
> CS student wrote in
> news:1189501680.238433.111030@g4g2000hsf.googlegroups.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