You can create a custom Java class that is started
during the user authentication process to determine the tenant bounding
set. You must use the IBM® Cognos® Software Development Kit
for this method.
When using this method, you must map
the property in IBM Cognos Configuration
to a custom Java™ class.
Before you begin
Before you can configure the tenant bounding set by using
this method, you must perform the following tasks:
- Compile any required custom Java class
files into JAR files, and either place the files into the c10_location/webapps/p2pd/WEB-INF/lib directory
with any associated files, or update the CLASSPATH environment variable
to include the path to these files.
- Implement the IBoundingSetProvider interface
by using the IBM Cognos Custom Authentication Provider. In
this interface, define a custom Java class
that you can later use when you configure the property. For example, the name can be com.example.class.
For more information, see the IBM Cognos Software Development Kit
Custom Authentication Provider Developer Guide.
Procedure
- Open IBM Cognos Configuration.
- Choose whether to configure this setting globally for all
namespaces, or for a specific namespace.
- To configure this setting for all namespaces, in the Explorer
window, for the Security category, click Authentication.
- To configure this setting for one namespace, in the Explorer window,
for the Security category, click Authentication.
Then, click the namespace that you want to configure.
- In the Multitenancy group of properties,
click the edit button for the Tenant ID Mapping property.
- In the Tenant Bounding Set Mapping box
that is displayed, specify your mapping in the following way:
- For Type, select Provider
Class.
- For Value, type the Java class name that you defined in the IBoundingSetProvider interface
by using the IBM Cognos Custom Authentication Provider.
For example, type ~/parameters/boundingSet,
where ~/parameters is a constant part of the syntax
and boundingSet is the custom property name.
- Click OK.
- If you need to specify any custom property, in the Account
Mappings (Advanced) group of properties, perform the following
actions:
- Click in the Value column for Custom
properties, and click the edit button.
- In the Value - Custom properties window,
click Add.
- Specify the property Name and Value as
required.
- Click OK.
- Test your multitenancy configuration.
- Right-click either Authentication or
the namespace (depending on your choice in step 2) and click Test.
- Log on using the credentials of the system administrator,
and click OK.
- Click the Details button and
read the information that is displayed.
If this setting is properly configured, the Tenant
bounding set is displayed in the details. If this setting
is not displayed, ensure that the value is correct and test again.
- If the testing was successful, from the File menu,
click Save.
- Restart the IBM Cognos service for the changes
to take effect.