title: Get username of client who connected to web server
body: <p>Here's the scenario. I am code running on a web server in an AD domain. Some client has connected to me. How do I get that client's username, without having the client fill out a form in their browser? Must use Java technologies on the web server side.</p>
  
  <p>edit:</p>
  
  <p>I ended up using the Spring Security Negotiate Filter as described at the below link. There is a tutorial available. Using <em>request.getPrincipal().getName()</em> from within a servlet gives the username.</p>
  
  <p><a href="http://waffle.codeplex.com/" rel="nofollow">http://waffle.codeplex.com/</a></p>