Previous Topic: Identity Management Sensitive TasksNext Topic: 2-Way SSL for Adeptra Voice Service


Maximum Number of Tenants

Follow these steps:

  1. Edit the following file:
    /opt/CA/siteminder/adminui/server/default/deploy/iam_siteminder.ear/management_console.war/WEB-INF/web.xml
    
  2. Set AccessFilter to enabled:
         <filter>
           <filter-name>AccessFilter</filter-name>
           <filter-class>com.netegrity.ims.manage.filter.AccessFilter</filter-class>
           <init-param>
             <param-name>Enable</param-name>
             <param-value>true</param-value>
           </init-param>
         </filter>
    
  3. Save the web.xml.
  4. Stop the application server:
    /opt/CA/siteminder/adminui/bin/shutdown.sh -S
    
  5. Start the application server:
    nohup /opt/CA/siteminder/adminui/bin/run.sh &
    
  6. Export the role definitions for the CSP console:
    1. Access the Management Console.
    2. Select Environments, SiteMinder, Role and Task Settings, Export.
    3. Save SiteMinder-RoleDefinitions.xml
    4. Edit SiteMinder-RoleDefinitions.xml
    5. Edit the screen field for Maximum Tenants on Create Hosting Container Profile Screen to have options for all possible values of max tenants:
           <ScreenField name="Maximum Tenants" permission="RWM" attribute="maxTenants">
              <PropertyDict name="Config">
                <Property name="allowNonOptions">1</Property>
                <Property name="CSSStyle"></Property>
                <Property name="DefaultValue"></Property>
                <Property name="DefaultValueJavaScript"><![CDATA[]]></Property>
                <Property name="FieldSpan">1</Property>
                <Property name="InitJavaScript"><![CDATA[]]></Property>
                <Property name="LabelRight"></Property>
                <Property name="LabelSpan">1</Property>
                <Property name="Options"><![CDATA[1
      220]]></Property>
                <Property name="optionsMethod">Options</Property>
                <Property name="SCREENLOGICAL">true</Property>
                <Property name="Style">Dropdown</Property>
                <Property name="StyleClass">im-autoFormField</Property>
                <Property name="ValidateOnChange">0</Property>
                <Property name="ValidationExpression"><![CDATA[]]></Property>
                <Property name="ValidationJava"></Property>
                <Property name="ValidationJavaScript"><![CDATA[]]></Property>
              </PropertyDict>
            </ScreenField>
      
  7. Edit the screen field for Maximum Tenants on Default Hosting Container Profile Screen to have script for generating all possible values of max tenants:
          <ScreenField name="Maximum Tenants" permission="RWM" attribute="maxTenants">
            <PropertyDict name="Config">
              <Property name="allowNonOptions">1</Property>
              <Property name="CSSStyle"></Property>
              <Property name="DefaultValue"></Property>
              <Property name="DefaultValueJavaScript"><![CDATA[]]></Property>
              <Property name="FieldSpan">1</Property>
              <Property name="InitJavaScript"><![CDATA[]]></Property>
              <Property name="LabelRight"></Property>
              <Property name="LabelSpan">1</Property>
              <Property name="optionsMethod">jsOptions</Property>
              <Property name="jsOptions"><![CDATA[function getOptions(ctx) {
      var state = ctx.getProfileObject().getAttribute("state");
      var maxTenants = 1;
      if (!"INACTIVE".equals(state) && !"FAILED".equals(state)) {
        maxTenants = java.lang.Integer.parseInt( ctx.getProfileObject().getLastCommittedAttribute("maxTenants") );
      }
      var options = maxTenants;
      for (i=maxTenants+1 ; i<=20 ; i++) {
        options += "|";
      options += i;
      }
      return options;
    }
    ]]></Property>
              <Property name="SCREENLOGICAL">true</Property>
              <Property name="Style">Dropdown</Property>
              <Property name="StyleClass">im-autoFormField</Property>
              <Property name="ValidateOnChange">0</Property>
              <Property name="ValidationExpression"><![CDATA[]]></Property>
              <Property name="ValidationJava"></Property>
              <Property name="ValidationJavaScript"><![CDATA[]]></Property>
            </PropertyDict>
          </ScreenField>
    
  8. Save SiteMinder-RoleDefinitions.xml
  9. Import the role definitions for the CSP console.
    1. Access the Management Console.
    2. Select Environments, SiteMinder, Role and Task Settings, Import.
    3. Select SiteMinder-RoleDefinitions.xml and click Finish.
    4. Restart the environment in the Management Console.