File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!