• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting currently logged in windows user information using JAVA API ?

 
Nishant
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me how to get the information of the logged in username using JAVA?
What I want to do is to make a HTML/JSP Web Page which will automatically take the windows authenticated username and display it on the second page when I press enter on the first page.
Thanks a lot
NA
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Nishant",
Thanks for participating here at the Ranch. However, the name you are using does not comply with our naming convention described at http://www.javaranch.com/name.jsp . Please log in with a new name, which meets these requirements.
You can change your name here.
Thanks.
Sean
 
sampy jagan
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get the server (Where the jvm is running) using System.getProperty("user.name"); . However if you are trying to get the Clients User Name then it is not possible..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic