Solved

accessing html user's LAN login name

Posted on 1998-04-20
5
147 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
[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
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

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…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
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…

739 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