Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get the network login from the user?

 
Bruno Santos
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no.
That information is not contained in the HTTP request (and why should it be? Doing so would bring a massive security risk).
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic