A DN map can be configured using dsconfig, either with the interactive DN Map menu, or from the command line.

Perform the following to configure a DN map:

  1. Use dsconfig to create a DN map for PingDataSync Server.
    $ 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={givenname:/^(.)(.*)/\$1/s}{sn:/^(.)(.*)/\$1/s}
    (eid},{2},o=example" \
      --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