File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how to get the network login from the user? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to get the network login from the user?" Watch "how to get the network login from the user?" New topic
Author

how to get the network login from the user?

Bruno Santos
Greenhorn

Joined: Nov 11, 2004
Posts: 7
Is there a way to get the user's network login (windows and linux) that made the request to the servlet? I tried request.getRemoteUser() but it's return null.

any ideias?
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
no.
That information is not contained in the HTTP request (and why should it be? Doing so would bring a massive security risk).


42
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Somebody told me the other day that they made an Active-X control that calls Windows APIs to get the network identity. They can embed it on a page or applet and get the information. (Requires a security policy no doubt.) They figure that if a user logs on the network the userid has been sufficiently validated for them. Our customers rejected this concept because the person at the keyboard may not be the one who signed on the network ... supervisors come around to help or diagnose problems or whatever. If you go this route, you'd want your users to be pretty darned careful about locking the workstation when they walk away.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get the network login from the user?
 
Similar Threads
Authentication on Active Directory without having to inform login/pass again
authenticate w/o LDAP
Person from Canada unable to access website
Java - Getting Login ID
Is there any Single Sign On Among Technical Forums out there?