title: How to get the client username with Waffle?
body: <p>I'm running <code>Tomcat 7</code> on <code>Windows 7</code>. All clients are running <code>Windows 7</code> too  . </p>
  
  <p>I'm trying to print the client username on a <code>test.jsp</code> page so I use <code>Waffle</code> . Here is the <code>WEB-INF/web.xml</code> </p>
  
  <pre><code> &lt;filter&gt;
    &lt;filter-name&gt;SecurityFilter&lt;/filter-name&gt;
    &lt;filter-class&gt;waffle.servlet.NegotiateSecurityFilter&lt;/filter-class&gt;
    &lt;init-param&gt;
      &lt;param-name&gt;impersonate&lt;/param-name&gt;
      &lt;param-value&gt;true&lt;/param-value&gt;
    &lt;/init-param&gt;
  &lt;/filter&gt; 
  </code></pre>
  
  <p>Here is my <code>test.jsp</code> </p>
  
  <pre><code>&lt;% 
      String userId = Secur32Util.getUserNameEx(Secur32.EXTENDED_NAME_FORMAT.NameSamCompatible); 
      out.println(userId); 
  %&gt; 
  </code></pre>
  
  <p>However it always prints the <code>server</code> computer username . I tried it on many <code>client</code> machines, and it always printed the <code>server</code> but not the <code>client</code>  userid </p>
  
  <p>Why? How to correct this? </p>