Solved

accessing html user's LAN login name

Posted on 1998-04-20
5
142 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

914 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now