lumis.portal.authentication.http
Class NtlmFilter

Package class diagram package NtlmFilter
java.lang.Object
  extended by lumis.portal.authentication.http.NtlmFilter
All Implemented Interfaces:
Filter

public class NtlmFilter
extends Object
implements Filter

Filter that implements the NTLM negotiation. This filter is necessary for the NtlmAuthenticator.

To configure this filter, you should specify jcifs properties as this filter's initialization parameters. See http://jcifs.samba.org/src/docs/ntlmhttpauth.html#props for detailed documentation for jcifs properties (basic authentication is not supported). Example definition for this filter:

<filter> <filter-name>NtlmFilter</filter-name> <filter-class>lumis.portal.authentication.http.NtlmFilter</filter-class> <init-param> <param-name>jcifs.http.domainController</param-name> <param-value>10.200.10.2</param-value> </init-param> <init-param> <param-name>jcifs.smb.client.domain</param-name> <param-value>DOMAIN_NAME</param-value> </init-param> <init-param> <param-name>jcifs.smb.client.username</param-name> <param-value>A_LOGIN_FOR_THE_SPECIFIED_DOMAIN</param-value> </init-param> <init-param> <param-name>jcifs.smb.client.password</param-name> <param-value>THE_PASSWORD_FOR_THE_LOGIN</param-value> </init-param> </filter> <filter-mapping> <filter-name>NtlmFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> </filter-mapping>

Since:
4.0.10
See Also:
NtlmAuthenticator

Constructor Summary
NtlmFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain)
           
 void init(FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NtlmFilter

public NtlmFilter()
Method Detail

init

public void init(FilterConfig filterConfig)
          throws ServletException
Specified by:
init in interface Filter
Throws:
ServletException

destroy

public void destroy()
Specified by:
destroy in interface Filter

doFilter

public void doFilter(ServletRequest req,
                     ServletResponse resp,
                     FilterChain chain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.