|
Home > Archive > IIS Server Security > March 2005 > REMOTE_USER (CGI,getenv) not set
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 |
REMOTE_USER (CGI,getenv) not set
|
|
| Alessandro 2005-03-11, 5: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
| |
| David Wang [Msft] 2005-03-14, 2: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
|
|
|
|
|