Solved

can't get logon user with proxy

Posted on 1997-11-19
3
218 Views
Last Modified: 2013-12-25
I'm using microchof IIS 2.0 thru an NT proxy. I need to capture the logon user and , inspecting all environ vars at cgi side (REMOTE_USER,AUTH_USER,HTTP_*) , as well as all them listed in MS docs , and the "interesting" ones have the NULL value. If I connect without proxy , everything is OK.
Any suggestions ?
Thanks in advance.
0
Comment
Question by:aurelio
  • 2
3 Comments
 
LVL 1

Expert Comment

by:dagmar
Comment Utility
Provided you have installed Perl32 on the NT/95 machine running the webserver, and set up the webserver to be able to execute perl code properly, you can do this very easily...

The perl fragment to do this would (should!) be:

-------8<-------
my $Key;

# You must have this line so the Httpd knows that you are
# delivering an HTML document!
print "Content-type: text/html\n\n";

print "<HTML>\n<HEAD>\n";
print "<TITLE>Environment Variables</TITLE>\n";
print "<BODY>\n";
print "<H1>Environment Variables:</H1>\n";
# This will print out all the environment variables
foreach $Key (keys %ENV) {
  print "$Key = :$ENV{$Key}:<BR>\n";
}
print "</BODY>\n</HTML>";

exit;
-------8<-------
0
 

Author Comment

by:aurelio
Comment Utility
Excuse me, but in the the question I say "inspecting all environ vars at cgi side .. " , I mean i've already seen the variable/values. The problem is that , after trespassing the proxy , the "interesting" ones ( logon name ) have NULL.
Thank you for the answer and sorry for the "rejection" .
0
 
LVL 1

Accepted Solution

by:
dagmar earned 10 total points
Comment Utility
If I'm interpreting your English properly, then what you are saying is that you are upset because you are unable to retrieve the identd information about the remote user when they go through a web proxy to reach your server.   (I.e., the username of the user logged in and running the browser on the remote machine.)

Unfortunately for you, this is what's supposed to happen when someone goes through a proxy.  A proxy server usually means they're on the other side of a firewall, and this means that you aren't going to be getting any information about that user anyway, anyhow.  You simply MUST have a clear path from the web server to the client's machine to get identd information back.
Sorry to disappoint you, but such is the nature of firewalls.

...further complicating issues is the fact that most people using graphical browsers are running them under Windows, which does not normally even have identd on it, so ident calls on the remote user will turn up null _anyway_.

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now