REMOTE_USER (CGI,getenv) not set
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > REMOTE_USER (CGI,getenv) not set




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    REMOTE_USER (CGI,getenv) not set  
Alessandro


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-11-05 10:59 PM

Hi All,

I have the folllowing problem:
I access a protected web page and IIS asks me for the login/password. I log
in.
Then I starts, from that page, a cgi program that is not protected. This cgi
reads the environment variable REMOTE_USER using getenv. The getenv returns
null.

Do I do something wrong?
When REMOTE_USER is set?

--
Thanks,

Alessandro





[ Post a follow-up to this message ]



    Re: REMOTE_USER (CGI,getenv) not set  
David Wang [Msft]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-14-05 07:48 AM

How did you launch the CGI program? Did it inherit the parent's environment
variables? Are you sure you logged in with a standard authentication scheme
(so IIS will populate the REMOTE_USER) and not a custom one (which depends
on the custom auth implementation as to whether REMOTE_USER is populated).

If the protected web page ran code and did not find REMOTE_USER, that would
be something wrong with IIS. But you are referring to code that is launched
by the web page, so it's completely up to the code you ran, at this point.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Alessandro" <Alessandro@discussions.microsoft.com> wrote in message
news:C375B62D-8B95-4C04-B325-817D3794A71B@microsoft.com...
Hi All,

I have the folllowing problem:
I access a protected web page and IIS asks me for the login/password. I log
in.
Then I starts, from that page, a cgi program that is not protected. This cgi
reads the environment variable REMOTE_USER using getenv. The getenv returns
null.

Do I do something wrong?
When REMOTE_USER is set?

--
Thanks,

Alessandro







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:19 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register