Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting system info using servlet

 
kamesh aru
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i get system information like computer name ,nt id etc using servlet ?
thanks in advance
 
kamesh aru
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am able to get the ipaddress of the client
by using
String ipaddress = request.getRemoteAddr();
but how to get nt id of the computer that is logged in in the intranet
 
kamesh aru
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if am using request.getRemoteUser() its returning null ?
how to get the user name who has logged into the nt machine
thanks for the responce
 
Eduardo Dela Rosa
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kamesh aru:
if am using request.getRemoteUser() its returning null ?
how to get the user name who has logged into the nt machine
thanks for the responce


Hi, as per Servlet 2.x specifications, the returns
the login of the user making the request, if the user has been
authenticated, or if the user has not been authenticated. Whether
the user name is sent with each subsequent request depends on the
browser and type of authentication.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64975
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
type of authentication.


Which means. of course, container-based authentication which has nothing to do with Windows login.
 
kamesh aru
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the responses.
is there way of using JAAS and getting the login username in the intranet?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic