This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Windows User Name 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 » Servlets
Bookmark "Windows User Name" Watch "Windows User Name" New topic

Windows User Name

Kudret Serin
Ranch Hand

Joined: Aug 02, 2005
Posts: 167

Hi all,
How can i get the windows user name of a client?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Browsers do not send that data.
You can't.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
g forte

Joined: Aug 28, 2003
Posts: 25
If the user is authenticated to a domain you may be able to grab userName/domain using this Servlet. I have had some success in the past with this.

I agree. Here's the link:
subject: Windows User Name
Similar Threads
comment template variables
Registry Values
NT Authentication in JSP
Problem while installing WAS 5.0
getting current logged user in windows