• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

getting system info using servlet

 
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
 
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.
 
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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?
 
    Bookmark Topic Watch Topic
  • New Topic