title: How to authenticate users against a Windows AD?
body: <p>I've a JSF-Hibernate web application. I need to authenticate users against a Windows AD and the web application should only allow logins from members of group X, otherwise it should redirect to an error page. How can I configure this?</p>
  
  <p>Also, I would like to display the name of the logged-in user on all pages, not the name of the Windows user of the server machine. I have tried the <code>System.property("user.name")</code> for this, but this only returns the name of the Windows user of the server name.</p>