The acpload utility loads the XML files containing the main access control policies into the appropriate databases.
Notes:
- If you create customized XML files, you need to copy them into the WC_installdir/xml/policies/xml directory to have them loaded into the databases.
- There is a setting in the loading scripts that specifies the following parameter setting while resolving ID's and loading the data to the database: "-maxerror 100000". This means that if there up to 100000 foreign key violations while loading the data, they will be ignored, instead of aborting. This value can be increased or decreased as needed. For example, if you want to stop after one such error, you would change the value to 1.
- This utility generates a log file, WC_installdir/logs/acpload.log, for any processing errors that might have occurred.
- 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 must use the full path to the DTD in your file. The access control policies DTDs are located in the WC_installdir/xml/policies/dtd directory.
To run the utility, you must login as the database user ID. The database user ID must have the following permission:
- Read/write/execute authority to the directories, subdirectories, and files of WC_installdir/xml/policies and WC_installdir/logs.
- Read/execute authority to the WC_installdir/bin directory and its files.
If the database user ID does not have the above required authority, you need to grant this authority using the chmod command.
Parameter values
- database
- (Required) Name of the database in which to load the policy.
- database_user
- (Required) Name of the database user who can connect to the database.
- database_user_password
- (Required) The associated password for the database user.
- input_filename
- (Required) The input policy XML file that specifies what policy data to load into the database.
- schema_name
- (Optional) The name of target database schema. This name is normally the same as database_user.
Example
From the WC_installdir/bin directory, run:
./acpload.sh mall dbuser dbusrpwd defaultAccessControlPolicies.xml
acpload.cmd mall dbuser dbusrpwd defaultAccessControlPolicies.xml