Editing Connector Configuration Files
A number of sample provisioner files are provided in path/to/openidm/samples/example-configurations/provisioners
. To modify connector configuration files directly, edit one of the sample provisioner files that corresponds to the resource to which you are connecting.
The following excerpt of an example LDAP connector configuration shows the attributes of an account object type. In the attribute mapping definitions, the attribute name is mapped from the IDM managed object to the nativeName
(the attribute name used on the external resource). The lastName
attribute in IDM is mapped to the sn
attribute in LDAP. The homePhone
attribute is defined as an array, because it can have multiple values:
{ ... "objectTypes": { "account": { "lastName": { "type": "string", "required": true, "nativeName": "sn", "nativeType": "string" }, "homePhone": { "type": "array", "items": { "type": "string", "nativeType": "string" }, "nativeName": "homePhone", "nativeType": "string" } } } }
For IDM to access external resource objects and attributes, the object and its attributes must match the connector configuration. Note that the connector file only maps IDM managed objects and attributes to their counterparts on the external resource. To construct attributes and to manipulate their values, you use a synchronization mapping, described in Mapping Data Between Resources.