README revision 8379ee46ec93e390435dc32135a00a26bb5d77b7
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * Copyright (c) 2014 ForgeRock AS. All rights reserved.
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering * The contents of this file are subject to the terms
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering * of the Common Development and Distribution License
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * (the License). You may not use this file except in
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * compliance with the License.
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * You can obtain a copy of the License at
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * http://forgerock.org/license/CDDLv1.0.html
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering * See the License for the specific language governing
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * permission and limitations under the License.
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * When distributing Covered Code, include this CDDL
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * Header Notice in each file and include the License file
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * at http://forgerock.org/license/CDDLv1.0.html
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * If applicable, add the following below the CDDL Header,
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * with the fields enclosed by brackets [] replaced by
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * your own identifying information:
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering * "Portions Copyrighted [year] [name of copyright owner]"
340d89e06e503836de9c124d650845f4889f8c2cLennart PoetteringSample 5b - "All-or-Nothing" Synchronization of Two Resources
340d89e06e503836de9c124d650845f4889f8c2cLennart Poettering-------------------------------------------------------------
340d89e06e503836de9c124d650845f4889f8c2cLennart PoetteringThis sample demonstrates flowing data between external resources just as
2. Edit samples/sample5b/script/reconStats.js and change these values to your
that represents an AD directory, samples/sample5b/data/xml_AD_Data.xml.
$ curl -k -H "Content-type: application/json" -u "openidm-admin:openidm-admin" -X POST "https://localhost:8443/openidm/recon?_action=recon&mapping=systemLdapAccounts_managedUser"
<icf:OpenICFContainer xmlns:icf="http://openidm.forgerock.com/xml/ns/public/resource/openicf/resource-schema-1.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://openidm.forgerock.com/xml/ns/public/resource/instances/resource-schema-extension samples/sample5b/data/resource-schema-extension.xsd http://openidm.forgerock.com/xml/ns/public/resource/openicf/resource-schema-1.xsd samples/sample5b/data/resource-schema-1.xsd">
samples/sample5b/data/xml_LDAP_Data.xml, and run reconciliation again
to see the result show up in samples/sample5b/data/xml_AD_Data.xml.
7. Login to the UI at https://localhost:8443/openidmui. You can use
openidm-admin/openidm-admin for admin access or DDOE1/TestPassw0rd2 for
$ mv /path/to/openidm/samples/sample5b/data/xml_LDAP_Data.xml /path/to/openidm/samples/sample5b/data/xml_LDAP_Data.xml.bak
xml_AD_Data.xml file and you will see that DDOE1 has also been reverted