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.
- -1
- Set this parameter to an integer value (nnn) to cause the LDAPMigrate operation to display a status after every nnn entries are handled.
- -2
- Set this parameter to a comma-separated list of flows that must be in this synchronization.
Examples
To test the connection settings
after you configure LDAPSync, run the following command:
ibmdisrv –c LDAPSync/LDAPSync.xml –r TestConnectionsTo
simulate a migration, run the following command:
ibmdisrv –c LDAPSync/LDAPSync.xml –r LDAPMigrate –0 simulateTo migrate
entries from source endpoints to target for all flows, run the following
command:
ibmdisrv –c LDAPSync/LDAPSync.xml –r LDAPMigrate –0 actualTo 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_nameAfter
the initial migration, to synchronize entries from source endpoint
to target, run the following command:
ibmdisrv –c LDAPSync/LDAPSync.xml –r LDAPSync –0 actualTo
reset the current change state, run the following command: