README revision 245d622535c32563b59ef5027b1171167ba9b451
0N/ASample 5 - Synchronization of Two Resources
0N/A-------------------------------------------
0N/ACopyright (c) 2012 ForgeRock AS
0N/AThis work is licensed under a Creative Commons Attribution-
0N/ANonCommercial-NoDerivs 3.0 Unported License. See
0N/Ahttp://creativecommons.org/licenses/by-nc-nd/3.0/
0N/A
0N/AThis sample demonstrates flowing data between external resources. It simulates
0N/Atwo directory resources using XML files.
0N/A
0N/AFor documentation pertaining to this example see:
0N/Ahttp://openidm.forgerock.org/doc/install-guide/index.html#more-sample5
0N/A
0N/ATo try the sample, follow these steps.
0N/A
0N/A 1. Start OpenIDM with the configuration for sample 5.
0N/A $ cd /path/to/openidm
0N/A $ ./startup.sh -p samples/sample5
0N/A When you start OpenIDM, it creates a data in the new external resource
0N/A file that represents an AD directory, samples/sample5/data/xml_AD_Data.xml.
0N/A The new file is empty until you run reconciliation.
0N/A
0N/A 2. Run reconciliation.
0N/A $ curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin" --request POST "http://localhost:8080/openidm/recon?_action=recon&mapping=systemLdapAccounts_managedUser"
0N/A {"reconId":"b149f0e3-4bb9-4790-9266-fab2e5c80ec6"}
0N/A
0N/A 3. Check
0N/A $ cat /path/to/openidm/samples/sample5/data/xml_AD_Data.xml
0N/A <?xml version="1.0" encoding="UTF-8"?>
0N/A <icf:OpenICFContainer xmlns:icf="http://openidm.forgerock.com/xml/ns/public/resource/openicf/resource-schema-1.xsd"
0N/A xmlns:ri="http://openidm.forgerock.com/xml/ns/public/resource/instances/resource-schema-extension"
0N/A xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
0N/A xsi:schemaLocation="http://openidm.forgerock.com/xml/ns/public/resource/instances/resource-schema-extension samples/sample5/data/resource-schema-extension.xsd http://openidm.forgerock.com/xml/ns/public/resource/openicf/resource-schema-1.xsd samples/sample5/data/resource-schema-1.xsd">
0N/A <ri:__ACCOUNT__>
0N/A <ri:firstname>Darth</ri:firstname>
0N/A <icf:__DESCRIPTION__/>
0N/A <icf:__GROUPS__/>
0N/A <icf:__UID__>68077c05-32ae-4438-b250-d23be784ea07</icf:__UID__>
0N/A <icf:__NAME__>DDOE1</icf:__NAME__>
0N/A <ri:email>mail1@example.com</ri:email>
0N/A <icf:__PASSWORD__>initial_Passw0rd</icf:__PASSWORD__>
0N/A <icf:__ENABLE__/>
0N/A <ri:lastname>Doe</ri:lastname>
0N/A </ri:__ACCOUNT__>
0N/A </icf:OpenICFContainer>
0N/A
0N/A 4. Create a new user in the source external resource file,
0N/A samples/sample5/data/xml_LDAP_Data.xml, and run reconciliation again
0N/A to see the result show up in samples/sample5/data/xml_AD_Data.xml.
0N/A