LDAPSync operations

You can use the ibmdisrv utility with the LDAPSync operations to test connections, migrate data, synchronize migrated data, or reset the state information for changes.

Syntax

Use the following syntax to run the ibmdisrv utility for LDAPSync operations:
ibmdisrv –c LDAPSync/LDAPSync.xml –r LDAPSync operation [Arguments]

Operations

TestConnections
Tests the connection properties to source and target directories.
LDAPMigrate
Migrates the data from source to target.
LDAPSync
Starts the synchronization service.
ResetChangeState
Resets the state information that is stored for the synchronization service so that it ignores previous changes. After you run this command, LDAPSync begins monitoring for new changes only. Only changes that occur after this service starts are synchronized. Modifications that are made before LDAPSync starts are ignored.

Arguments

You can use the following command-line arguments for the LDAPSync commands:

-0
Set this parameter to either one of the following values:
  • -0 simulate to run a simulated synchronization.
  • -0 actual to run an actual synchronization.
Note: This argument overrides the global.simulate property setting.
-1
Set this parameter to an integer value (nnn) to cause the LDAPMigrate operation to display a status after every nnn entries are handled.
For example, if you specify the parameter as -1 1000, a status message is logged for every 1000 entries.
-2
Set this parameter to a comma-separated list of flows that must be in this synchronization.
For example, if you specify the parameter as -2 AD1,AD2, then the synchronization operation is run on the flows that are named AD1 and AD2.
Note: This parameter is valid only if flows are specified in the global.flows property.

Examples

To test the connection settings after you configure LDAPSync, run the following command:
ibmdisrv –c LDAPSync/LDAPSync.xml –r TestConnections
To simulate a migration, run the following command:
ibmdisrv –c LDAPSync/LDAPSync.xml –r LDAPMigrate –0 simulate
To migrate entries from source endpoints to target for all flows, run the following command:
ibmdisrv –c LDAPSync/LDAPSync.xml –r LDAPMigrate –0 actual
To migrate entries from source endpoint to target for a specific flow, run the following command:
ibmdisrv –c LDAPSync/LDAPSync.xml –r LDAPMigrate –0 actual –2 flow_name
After the initial migration, to synchronize entries from source endpoint to target, run the following command:
ibmdisrv –c LDAPSync/LDAPSync.xml –r LDAPSync –0 actual
To reset the current change state, run the following command: