This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring 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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Windows User Name
It's not a secret anymore!