1
Vote

Authentication with tomcatspnego using a ServletFilter: Source here

description

Hi,
 
This is the issue mentioned in the discussion thread
see http://tomcatspnego.codeplex.com/Thread/View.aspx?ThreadId=224431&ANCHOR#Post483337
 
I have added the source to this issue. Hope this is useful for others.
 
This filter SSPAuthenticatorFilter is copied mostly from SSPAuthenticator.java. (TCP version 062010)
I did not copy the code dealing with the AD groups, because I only want to use the filter for (SSO) Authentication (and not Authorization).
 
The classes are such that all new/modified code fits in only one new source file: SSPAuthenticatorFilter.java.
 
Sorry: I did not adjust the javadoc/comments.
 
the following web.xml config fits for me:
 
<filter>
<filter-name>SpnegoFilter</filter-name>
<filter-class>fr.doume.v2.authenticator.SSPAuthenticatorFilter</filter-class>
<init-param>
    <param-name>onlyntlm</param-name>
    <param-value>true</param-value>
</init-param>
<init-param>
    <param-name>nogroupsinad</param-name>
    <param-value>true</param-value>
</init-param>
</filter>
 
<filter-mapping>
<filter-name>SpnegoFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

file attachments

comments