Using the create-sync-pipe tool to configure synchronization
You can use the create-sync-pipe-config
utility to configure a Sync Pipe. After the configuration is completed, you can adjust settings using the dsconfig
tool.
About this task
If servers have no base entries or data, the |
If synchronizing pre-encoded passwords to a PingDirectory server destination, you must allow pre-encoded passwords in the default password policy. You must also configure password encryption on the destination. Make sure that the password encryption algorithm is supported by both source and destination servers with the following command:
$ bin/dsconfig set-password-policy-prop \
--policy-name "Default Password Policy" \
--set allow-pre-encoded-passwords:true
Encrypted and clear-text passwords can be synchronized by configuring the sync destination password-synchronization-format
and require-secure-connection-for-clear-text-passwords
properties.
You can set the If the If a secure connection is not available, an error is generated and the password is not synchronized. |
To configure PingDataSync with the create-sync-pipe-config
command:
Steps
-
Start PingDataSync:
$ <server-root>/bin/start-server
-
From the
bin
directory, run thecreate-sync-pipe-config
tool:$bin/create-sync-pipe-config
-
In the Initial Synchronization Configuration Tool menu, press Enter (yes) to continue the configuration.
-
In the Synchronization Mode menu, press Enter to select Standard Mode.
-
In the Synchronization Directory menu, select oneway(1) or bidirectional(2) for the synchronization topology.
This example assumes bidirectional synchronization.
-
In the Source Endpoint Type menu, select the directory or database server for the first endpoint.
-
In the Source Endpoint Name menu, enter a name for the endpoint server, or press Enter to accept the default.
-
In the Base DNs menu, enter the base distinguished name (DN) on the first endpoint topology where the entries will be searched.
For example,
dc=example,dc=com
. -
Select an option for the server security.
-
Enter the host name and listener port number for the source server, or accept the default.
Make sure that the endpoint servers are online and running.
-
Enter another server host and port, or press Enter to continue.
-
Enter the SyncUser account DN for the endpoint servers, or press Enter to accept the default (
cn=Sync User,cn=RootDNs,cn=config
). -
Enter and confirm a password for this account.
Result:
You can now configure the servers in the destination endpoint topology.
-
Repeat steps 6– 13 to configure the second server.
-
Define the maximum age of changelog log entries, or press Enter to accept the default.
After you configure the source and destination topologies, PingDataSync prepares each external server by testing the connection to each server. Step 15 determines if each account has the necessary privileges (root privileges are required) to communicate with and transfer data to each endpoint during synchronization.
-
In the Sync Pipe Name menu, create a name for the Sync Pipe, or press Enter to accept the default.
Because this configuration is bidirectional, the following step is setting up a Sync Pipe path from the source endpoint to the destination endpoint. A later step will define another Sync Pipe from the PingDirectory server to another server.
-
In the SyncClass Definitions menu, enter
Yes
to create a custom Sync Class.A Sync Class defines the operation types (creates, modifies, or deletes), attributes that are synchronized, how attributes and DNs are mapped, and how source and destination entries are correlated.
-
Enter a name for the new Sync Class, such as
server1_to_server2
. -
In the Base DNs for Sync Class menu, enter one or more base DNs to synchronize specific subtrees of a directory information tree (DIT).
Entries outside of the specified base DNs are excluded from synchronization. Make sure the base DNs do not overlap.
-
In the Filters for Sync Class menu, define one or more LDAP search filters to restrict specific entries for synchronization, or press Enter to accept the default (no).
Entries that do not match the filters are excluded from synchronization.
-
In the Synchronized Attributes for Sync Class menu, specify which user attributes will be automatically mapped from one system to another.
This example will exclude the source attribute (
email
) from being auto-mapped to the target servers. Operational attributes are not included in any attribute mapping. -
In the Operations for Sync Class menu, select the operations to synchronize for the Sync Class, or press Enter to accept the default (
1,2,3
). -
Define a default Sync Class that specifies how the other entries are processed, or press Enter to create a Sync Class called
Default Sync Class
. -
In the Default Sync Class Operations menu, specify the operations that the default Sync Class will handle during synchronization, or press Enter to accept the default.
-
Define a Sync Pipe going from the PingDirectory server to the Sun Directory Server and exclude the
mail
attribute from being synchronized to the other endpoint servers. -
Review the Sync Pipe Configuration Summary, and press Enter to accept the default (write configuration), which records the commands in a batch file (
<server-root>/sync-pipe-cfg.txt
).You can reuse the batch file to set up other topologies.
Next steps
Apply the configuration changes to the local PingDataSync instance by using a dsconfig
batch file. Any Server SDK extensions should be saved to the <server-root>/lib/extensions
directory.
The next step is to configure the attribute mappings using the dsconfig
command.