Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 151
  • Last Modified:

accessing html user's LAN login name

Is it possible to access the user's login name using CGI? If not, can java applet or anything else do the same? What about the environment variables that HTML returns? How are they accessed using C++ CGI program?
0
indranil
Asked:
indranil
  • 3
  • 2
1 Solution
 
OMCommented:
First of all it's not polite (read: acceptable)
to get access of the login name
of an user *without explicitly* telling him what you are doing.
Second, there is environment variable in CGI script named :

REMOTE_IDENT

     If the HTTP server supports RFC 931 identification, then this variable will be set to the remote user name
     retrieved from the server. Usage of this variable should be limited to logging only.

Unfortunately (or fortunately) the access to this identification system is always absent or restricted.


0
 
julio011597Commented:
REMOTE_IDENT is only set when there is web server's access control _enabled_ (like on this site), and what you get is the user's login name related to - of course - web server's access control.

Also, since those who get REMOTE_IDENT are the same people who have set up an account for you, i cannot see it as being particularly against privacy.
0
 
OMCommented:
Sorry Julio, but I cut and paste from HTTP/1.0 spec and
I confirm that REMOTE_IDENT if got from RFC931 indentifcation
system.
What you are refering to is REMOTE_USER :
REMOTE_USER

     If the server supports user authentication, and the script is protected, this is the username they have authenticated
     as.

(http://hoohoo.ncsa.uiuc.edu/cgi/env.html)

0
 
julio011597Commented:
Me, i'm sorry OM, because i made you waste your time... i.e. you're right.
0
 
OMCommented:
All right.But we are all waiting for indranil reaction :
either accept or reject the answer.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now