PingDirectory

Configuring a DN map by using dsconfig

About this task

You can configure a DN map by using dsconfig, either with the interactive DN Map menu, or from the command line.

Perform the following to configure a DN map:

Steps

  1. Use dsconfig to create a DN map for PingDataSync.

    $ bin/dsconfig --no-prompt create-dn-map \
      --map-name nested-to-flattened \
      --set "from-dn-pattern:*,**,dc=example,dc=com" \
      --set "to-dn-pattern:uid={1},{2},dc=example,dc=com" \
      --port 1389 \
      --bindDN "uid=admin,dc=example,dc=com" \
      --bindPassword secret
  2. After DN mappings are configured, add the new DN map to a new Sync Class or modify an existing Sync Class.

    $ bin/dsconfig --no-prompt set-sync-class-prop \
      --pipe-name test-sync-pipe \
      --class-name test-sync-class \
      --set dn-map:test-dn-map \
      --port 389 --bindDN "uid=admin,dc=example,dc=com" \
      --bindPassword secret