Solved

accessing html user's LAN login name

Posted on 1998-04-20
5
146 Views
Last Modified: 2013-12-25
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
Comment
Question by:indranil
  • 3
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
OM earned 100 total points
ID: 1827675
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
 
LVL 5

Expert Comment

by:julio011597
ID: 1827676
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
 
LVL 1

Expert Comment

by:OM
ID: 1827677
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
 
LVL 5

Expert Comment

by:julio011597
ID: 1827678
Me, i'm sorry OM, because i made you waste your time... i.e. you're right.
0
 
LVL 1

Expert Comment

by:OM
ID: 1827679
All right.But we are all waiting for indranil reaction :
either accept or reject the answer.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

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…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

685 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