Import Users from LDIF
Sample workflow to import users from an LDIF file
Import Users from LDIF is a source workflow that reads user data from the connected directory LDIFfile and writes it into the Identity Store. The TS port represents the LDIF source, while the IdentityDomain port represents the destination in DirX Identity.
Use this workflow when an LDIF file is the authoritative source for user entries that you want to create or update in the Identity Store. The workflow works on the users channel and keeps the file import separate from target-system provisioning workflows, even though the technical workflow type is ProvisionTS.
The workflows in this reference are delivered as factory data and are loaded into the Connectivity configuration database during the initial configuration. They are samples: use the Identity Manager to copy a workflow into your own scenario and adapt the copy. Do not change the delivered objects, because a product update can replace them.
At a Glance
Name |
|
Category |
Source Realtime / LDIFfile |
Technology |
Java-based real-time workflow |
LDAP object class |
|
Workflow type |
|
Connected system / controller type |
|
Configuration wizard |
|
Active in the factory data |
FALSE |
Factory data version |
8.0 |
Factory data path |
|
Prerequisites
-
You need a connected directory
LDIFfilethat is configured for theLdifConnectorand points to the LDIF source that you want to import. -
You need the connected directory
Identity Storefor theIdentityDomainport, with the bind profileDomain_Admin. -
The
TSport uses theCryptFilter, so the file content must match the expected encrypted attribute handling. -
The Java-based Server that runs the workflow must be able to reach the LDIF source, the Identity Store, and the JMS and mail infrastructure that the
event,notifyanderrorports use.
Workflow and Activities
| Activity | Type | Component description | Description | Ports |
|---|---|---|---|---|
|
|
|
Error Activity |
|
|
|
|
Join activity for the import users from LDIF workflow |
|
Ports
| Activity | Port | Component description | Connector | Connected directory | Bind profile | SSL |
|---|---|---|---|---|---|---|
|
|
|
|
- |
- |
not set |
|
|
|
|
- |
- |
not set |
|
|
|
|
|
|
not set |
|
|
|
|
- |
- |
not set |
|
|
|
|
|
- |
FALSE |
Channels
| Channel | Description | Reference type | Delta type |
|---|---|---|---|
|
Channel for users |
not set |
SearchAttributes |
| Channel | Description | Reference type | Delta type |
|---|---|---|---|
|
Channel for users |
not set |
not set |
Configuration Parameters
| Parameter | Default value |
|---|---|
|
P0Y0M4DT0H0M0S |
| Parameter | Default value |
|---|---|
|
|
|
3 |
|
P0Y0M1DT0H0M0S |
|
P0Y0M0DT2H0M0S |
| Parameter | Default value |
|---|---|
|
dxmPassword |
| Parameter | Default value |
|---|---|
|
LDAP |
|
3 |
|
P0Y0M1DT0H0M0S |
|
P0Y0M0DT0H30M0S |
| Parameter | Default value |
|---|---|
|
event |
|
userPassword |
|
false |
| Parameter | Default value |
|---|---|
|
userPassword |
| Parameter | Default value |
|---|---|
|
userPassword |
| Parameter | Default value |
|---|---|
|
dxmPassword |
A Java-based real-time workflow runs as a permanently loaded configuration in the Java-based Server (IdS-J). It is triggered by a request or an event rather than by a schedule. Each workflow consists of activities; an activity opens one port per system it talks to, and each port uses a connector to reach that system.
Most provisioning workflows contain a join activity that performs the actual work and an error
activity that receives requests which still fail after all retries and sends a notification about
them. The retrylimit, waitbeforeretry and timeout parameters of an activity control how often
and how long a failed request is retried before it is handed to the error activity.
The event port publishes change events over JMS, and the notify port sends e-mail notifications.
Neither port is bound to a connected directory.
The join activity performs the import. Its TS port reads users from LDIFfile, and its IdentityDomain port writes the corresponding users into the Identity Store. The event port receives the JMS requests that start the workflow, the notify port sends the configured mail notifications, and the CryptFilter on the TS port decrypts protected source values before the LdifConnector handles them.
A request that fails is retried up to three times (retrylimit) with 30 minutes between attempts (waitbeforeretry). If it still fails, the error activity takes it over and reports it through the Message port; the workflow parameter timeout gives a request four days before it is discarded.
Operation
-
A change for the
userschannel reaches the workflow through theeventport. -
The Java-based Server passes the resulting request to the
joinactivity. -
The
TSport reads the affected user fromLDIFfile. -
The
IdentityDomainport creates or updates the corresponding user in the Identity Store. -
The
notifyport sends the configured notifications, and theeventport publishes the resulting workflow event. -
Requests that fail permanently are handed to the
erroractivity, which reports them by e-mail.
The workflow is delivered inactive (dxmActive is FALSE). Copy it into your own scenario, connect the copy to your connected directory and activate the copy.