Edit the web.xml deployment descriptor to enable security for each web application that you want to protect with the SiteMinder Agent Web Interceptor. The web.xml file is located in the application WEB-INF directory.
For more information about the web.xml file and constituent element syntax, see the JBoss Enterprise Application Platform documentation.
To Edit the web.xml deployment descriptor to enable security
<security-constraint>
<display-name>Constraint1</display-name>
<web-resource-collection>
<web-resource-name>admin resource</web-resource-name>
<description/>
<url-pattern>/admin/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<description/>
<role-name>adminRole</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<description/>
<role-name>adminRole</role-name>
</security-role>
<login-config>
<auth-method>FORM</auth-method>
<realm-name/>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/fail_login.jsp</form-error-page>
</form-login-config>
</login-config>
| Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |