We would like to filter usernames during login to ICN.
We changed ICN authentication to: Application server form-based authentication. Next, we have followed the steps described in https://www.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.base.doc/ae/tsec_servlet.html
Detailed steps:
1. Eclipse: New Dynamic Web Project, new Filter: public class LoginFilter implements Filter, as in knowledgecenter.
2. Copy new LoginFilter.class to C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\WIN110Node01Cell\navigator.ear\navigator.war\WEB-INF\classes
3. To be sure, export the project as a jar and paste it into C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\WIN110Node01Cell\navigator.ear\navigator.war\WEB-INF\lib
4. Add filter definition to files:
C:\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\WIN110Node01Cell\applications\navigator.ear\deployments\navigator\navigator.war\WEB-INF\web.xml
C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\WIN110Node01Cell\navigator.ear\navigator.war\WEB-INF\web.xml
<filter>
<display-name>LoginFilter</display-name>
<filter-name>LoginFilter</filter-name>
<filter-class>pl.navigator.RSA.LoginFilter</filter-class>
<description>Performs pre-login and post-login operation</description>
<init-param>
<param-name>RevokedUsers</param-name>
<param-value>C:\IBM\PLUGINS\revokedUsers.lst</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>LoginFilter</filter-name>
<url-pattern>/j_security_check</url-pattern>
</filter-mapping>
5. Restart WAS profile with clearing temp and wstemp folders.
Then we try to log in, nothing has changed, we can log in as before. System.out added in init() and doFilter() did not appear in SystemOut.log.
#IBMContentNavigator(ICN)#Support#SupportMigration