Solved

can't get logon user with proxy

Posted on 1997-11-19
3
234 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
[X]
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
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

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 …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

734 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