Loading access control policy definitions and other policy-related elements
To load access control policy definitions, run the acpload script. This script loads the following elements: <Action>, <ActionGroup>, <Attribute>, <ResourceCategory>, <ResourceGroup>, <Relation>, <RelationGroup>, <Policy>, <PolicyGroup>.
- To load the access groups and access control policies, you need to run the following related
utilities in this sequence:
- acugload (loads the user access group definitions)
- acpload (loads the main access control policy)
- acpnlsload (loads the display names and descriptions)
- If you create customized XML files, you need to copy them into the following directory to have
them loaded into the databases.
- utilities_root
/xml/policies/xml
- WCDE_installdir
\xml\policies\xml
- utilities_root
- When creating a custom policy, do not alter the defaultAccessControlPolicies.xml file. Use this file as a reference to see the structure when creating a custom policy.
Procedure
- Ensure that you have loaded the user access group definitions.
-
Copy your customized access control policy files to the following directory:
- utilities_root
/xml/policies/xml
- WCDE_installdir
\xml\policies\xml
The customized XML files must conform to the accesscontrolpolicies.dtd file in the following directory:
- utilities_root
/xml/policies/dtd
- WCDE_installdir
\xml\policies\dtd
- utilities_root
-
To run the utility:
You must login as a user which has the following permissions:
- Read/write/execute authority to these directories, subdirectories, and files.
- utilities_root/xml/policies and utilities_root/logs
- WCDE_installdir\xml\policies and WCDE_installdir\logs
- Read/execute authority to the following directory and its files.
- utilities_root
/bin
- WCDE_installdir
\bin
If the user does not have the required authority, you need to grant this authority using the chmod command.
- utilities_root
- Read/write/execute authority to these directories, subdirectories, and files.
-
From the utilities_root/bin or
WCDE_installdir\bin directory, type the
following:
- ./acpload.sh policies_xml_file
- .\acpload.sh policies_xml_file
where:
- policies_xml_file
- Required: The input policy XML file that specifies what policy data to load into the database.
- For example:
./acpload.sh opt/WebSphere/CommerceServer90/xml/policies/xml/defaultAccessControlPolicies.xml
-
Check for errors in the log files. Note that errors might not appear on the command line.
- Update the registries: Access Control Policies and Access Control Policy Groups.