It's not a secret anymore!*
The moose likes JSP and the fly likes Getting currently logged in windows user information using JAVA API ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Getting currently logged in windows user information using JAVA API ?" Watch "Getting currently logged in windows user information using JAVA API ?" New topic
Author

Getting currently logged in windows user information using JAVA API ?

Nishant
Greenhorn

Joined: Sep 17, 2002
Posts: 6
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

Joined: Nov 07, 2000
Posts: 621
"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

Joined: Sep 17, 2002
Posts: 34
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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting currently logged in windows user information using JAVA API ?
 
Similar Threads
Windows username
Using JAAS
Acegi Configuration
Getting currenlt y logged in user name using JAVA API ?
windows user name