Description:
For CA Identity Manager releases R12 CR13 onwards/R12.5 SP6 onwards, logging.jsp and ping.jsp are no longer by default. As specified in the readme.txt file located under <IMTOOLS>/samples/admin, it is now required to manually deploy the jsp files and then configure a security role within JBoss in order to protect these pages. This How-to document is to be used as a supplement to the original readme.txt file. Steps 1 and 2 are copied from original readme.txt file for convenience purposes only. This document only adds information when we get to step 3.
Solution:
Before following the below steps make sure the JBoss server is stopped.
<security-constraint> <web-resource-collection> <web-resource-name>IAMSecureAdminTooles</web-resource-name> <description>Security constraint for IAM Admin Tools</description> <url-pattern>/ping.jsp</url-pattern> <url-pattern>/logging.jsp</url-pattern> <url-pattern>/app/adapterBLTHTest.jsp</url-pattern> <url-pattern>/app/objectTest.jsp</url-pattern> <url-pattern>/app/ping.jsp</url-pattern> <url-pattern>/app/pluginTest.jsp</url-pattern> <url-pattern>/ui/ping.jsp</url-pattern> <http-method>POST</http-method> <http-method>GET</http-method> </web-resource-collection> <auth-constraint> <description>only let the admin users use secured admin tools</description> <role-name>IAMAdmin</role-name> </auth-constraint> <user-data-constraint> <description>SSL not required</description> <transport-guarantee>NONE</transport-guarantee> </user-data-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> <realm-name>IAM Realm</realm-name> </login-config> <security-role> <description>The IAM Secure Admin Role</description> <role-name>IAMAdmin</role-name> </security-role>
<jboss-web> <context-root></context-root> <security-domain>java:/jaas/tools</security-domain></jboss-web>Note: tools is the name for an application policy name that will be created in the next step.
<!-- start of tools configuration CR13 --> <application-policy name="tools"> <authentication> <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required"> <module-option name="hashAlgorithm">MD5</module-option> <module-option name="hashEncoding">base64</module-option> <module-option name="usersProperties">tools-users.properties</module-option> <module-option name="rolesProperties">tools-roles.properties</module-option> </login-module> </authentication> </application-policy> <!-- end of tools configuration CR13 -->
These credentials are valid to all sample jsp files deployed in step 1.