Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

can't get logon user with proxy

Posted on 1997-11-19
3
230 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
ID: 1831294
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
ID: 1831295
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
ID: 1831296
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

829 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