Name Last Update
..
conf Loading commit data...
data Loading commit data...
script Loading commit data...
README Loading commit data...

README

Sample 5 - Synchronization of Two Resources
-------------------------------------------
Copyright (c) 2012 ForgeRock AS
This work is licensed under a Creative Commons Attribution-
NonCommercial-NoDerivs 3.0 Unported License. See
http://creativecommons.org/licenses/by-nc-nd/3.0/

This sample demonstrates flowing data between external resources. It simulates
two directory resources using XML files.

For documentation pertaining to this example see:
http://openidm.forgerock.org/doc/install-guide/index.html#more-sample5

To try the sample, follow these steps.

1. Copy the sample configuration and data.
$ cd /path/to/openidm
$ cp -r samples/sample5/conf samples/sample5/script .

2. Start OpenIDM.
$ ./startup.sh
When you start OpenIDM, it creates a data in the new external resource
file that represents an AD directory, samples/sample5/data/xml_AD_Data.xml.
The new file is empty until you run reconciliation.

3. Run reconciliation.
$ curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin" --request POST "http://localhost:8080/openidm/sync?_action=recon&mapping=systemLdapAccounts_managedUser"
{"reconId":"b149f0e3-4bb9-4790-9266-fab2e5c80ec6"}

4. Check
$ cat /path/to/openidm/samples/sample5/data/xml_AD_Data.xml



Darth


68077c05-32ae-4438-b250-d23be784ea07
DDOE1
mail1@example.com
initial_Passw0rd

Doe

5. Create a new user in the source external resource file,
samples/sample5/data/xml_LDAP_Data.xml, and run reconciliation again
to see the result show up in samples/sample5/data/xml_AD_Data.xml.