ReportCaster Remote Authentication

The Caster Remote Authenticated setting in the ReportCaster Server Configuration tool may be set as follows:


Top of page

Example: Enabling ReportCaster Remote Authentication

To enable Caster Remote Authentication, the following sample code may be appended to your /ibi/WebFOCUS77/webapps/webfocus/WEB-INF/web.xml file. This sample enables the use of Basic authentication for the ReportCaster user ID. It only enables administrators to access the ReportCaster Console. This is a standard J2EE container managed security sample.

<web_app>
!code
!code
!code 
!Insert the following code here right before the </web_app> tag 
<security-constraint id="SecurityConstraint_1">
         <web-resource-collection id="WebResourceCollection_1">
            <web-resource-name>console</web-resource-name>
            <description>Report Caster Console</description>
            <url-pattern>/console/*</url-pattern>
         </web-resource-collection>
         <auth-constraint id="AuthConstraint_1">
            <description>Console:+:Administrators</description>
            <role-name>Admins</role-name>
         </auth-constraint>
         <user-data-constraint id="UserDataConstraint_1">
            <transport-guarantee>NONE</transport-guarantee>
         </user-data-constraint>
      </security-constraint>
      <security-constraint id="SecurityConstraint_2">
         <web-resource-collection id="WebResourceCollection_2">
            <web-resource-name>access</web-resource-name>
            <description>regular users</description>
            <url-pattern>/servlet/DSTRCServlet/*</url-pattern>
         </web-resource-collection>
         <auth-constraint id="AuthConstraint_2">
            <description>rusers:+:regular access</description>
            <role-name>Users</role-name>
            <role-name>Admins</role-name>
         </auth-constraint>
         <user-data-constraint id="UserDataConstraint_2">
     <transport-guarantee>NONE</transport-guarantee>
         </user-data-constraint>
      </security-constraint>
<login-config id="LoginConfig_1">
         <auth-method>BASIC</auth-method>
         <realm-name>WebFOCUS</realm-name>
      </login-config>
      <security-role id="SecurityRole_1">
         <description>Regular Users</description>
         <role-name>Users</role-name>
      </security-role>
      <security-role id="SecurityRole_2">
         <description>Administrators</description>
         <role-name>Admins</role-name>
      </security-role>
</web_app>

WebFOCUS