You must install the connector in Oracle Identity Manager. If necessary, you can also deploy the connector in a Connector Server.
The Generic REST connector installation can be divided into various stages, as illustrated in the following figure:
Figure 3-1 Stages of Connector Installation
Installation information is divided across the following sections:
You must install the connector installation package by running the Connector Installer. When you run the Connector Installer, it automatically copies configuration files to Oracle Identity Manager and uploads the connector bundle, org.identityconnectors.genericrest-1.0.1115.jar, to the Oracle Identity Manager database.
You must run the Metadata Generator to generator the connector metadata package and then install it.
You generate a connector metadata package for your target system by running the metadata generator.
You invoke the metadata generator from the command line by using the executable file named GenericRestGenerator.cmd or GenericRestGenerator.sh.
To run the metadata generator, in a command window, change to the genericrest-RELEASE_NUMBER/metadata-generator/bin directory (for example, genericrest-11.1.1.5.0/bin) and run one of the following commands depending on the operating system that you are using:
For Microsoft Windows
GenericRestGenerator.cmd CONFIG_FILE CONFIG_NAME
For UNIX
GenericRestGenerator.sh CONFIG_FILE CONFIG_NAME
In this command, replace:
CONFIG_FILE with the absolute or relative path name of the GenericRestConfiguration.groovy file.
CONFIG_NAME with the name of the configuration section within the GenericRestConfiguration.groovy file, being used for the target system. The sample configuration within this file are trusted and target. You can create additional custom configurations with different names depending on your requirements.
The following is a sample command: GenericRestGenerator.cmd ..\resources\GenericRestConfiguration.groovy target
In this command, "target" denotes the name of the section in the GenericRestConfiguration.groovy file for which you have specified values. .
If you encounter any errors while running the metadata generator, then you must fix it and then resume running the metadata generator.
You must install the connector metadata package by running the Connector Installer. When you run the Connector Installer, it automatically imports the metadata files into Oracle Identity Manager, generates all the connector components, and compiles adapters used for provisioning.
The connector metadata package is a ZIP file that is generated in the GenericRest-RELEASE_NUMBER/metadata-generator/ directory.
For example, if you have specified GenRest as the value of the itResourceDefName entry in the GenericRestConfiguration.groovy file, then the connector package ZIP (GenRest.zip) file is generated in the GenericRest-11.1.1.5.0/metadata-generator/directory. The directory structure of the connector metadata package is as follows:
CONNECTOR_METADATA_PCKG/ configuration/ IT_RES_DEF-CI.xml resources/ genericrest-generator.properties xml/ IT_RES_DEF-ConnectorConfig.xml
In this directory structure:
CONNECTOR_METADATA_PCKG is replaced with the name of the IT resource definition specified as the value of the itResourceDefName entry in the GenericRestConfiguration.groovy file.
IT_RES_DEF is replaced with the name of the IT resource definition specified as the value of the itResourceDefName entry in the GenericRestConfiguration.groovy file.
The following behavior is observed after generation of the connector configuration XML file:
The length of a field (column) from the target system is not fetched into the process form. Therefore, except for the Unique ID and Password fields, the length of all other data fields (of the String data type) on the process form is always set to 255 characters. The length of the Unique ID and Password fields is set to 40 characters.