How to authenticate users against a Windows AD?
        Posted  
        
            by 
                Potinos
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Potinos
        
        
        
        Published on 2012-06-19T14:50:34Z
        Indexed on 
            2012/06/19
            15:16 UTC
        
        
        Read the original article
        Hit count: 257
        
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?
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 System.property("user.name") for this, but this only returns the name of the Windows user of the server name.
© Stack Overflow or respective owner