README revision 4b3769ce483ece06f60f983193712492b920144f
48c0c81cd6fabac9d3386406d97633780365b839coarSample 1 - One-Way XML -> Internal Repository
9a93784d34c322d1996e8a7b794a75230eac81a4wrowe---------------------------------------------
2a6c49cfaef5979a5a06098f3ce987cd76769409manojCopyright (c) 2012-2014 ForgeRock AS
2a6c49cfaef5979a5a06098f3ce987cd76769409manojThis work is licensed under a Creative Commons Attribution-
2a6c49cfaef5979a5a06098f3ce987cd76769409manojNonCommercial-NoDerivs 3.0 Unported License. See
9a93784d34c322d1996e8a7b794a75230eac81a4wrowehttp://creativecommons.org/licenses/by-nc-nd/3.0/
9a93784d34c322d1996e8a7b794a75230eac81a4wrowe
4bc630d510cef730e37b9207e145267f473b4471strikerThe documentation at http://openidm.forgerock.org/doc/install-guide/index.html#chap-sample
a096f8d13bee05fd6ea8b9b50b6c2e818eace7d1strikerdescribes how to get started with this sample.
dba571e5c5a2586c7e2b382789f3250136ff7577jwoolley
dba571e5c5a2586c7e2b382789f3250136ff7577jwoolleyThe sample demonstrates reconciliation between the OpenIDM internal
bf3d1782a29630335a1df535eb395355ab1cd154jwoolleyrepository and an external XML file, with data flowing from the XML
07847078a10fe4e9229cc08adda5f421cafc0665jwoolleyfile into the internal repository.
0bd0176ce9f4321eeb506aa372d0bcc84befbf4cstriker
d8028365066fca602bf35d014530a1802114378crbbThe configuration files used in this sample are as follows:
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe* samples/sample1/conf/provisioner.openicf-xml.json shows the XML connector configuration.
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe* samples/sample1/conf/schedule-reconcile_systemXmlAccounts_managedUser.json includes a
d89c116f82699294ca744125723651c554bc5925wrowe schedule configuration you can use to run reconciliation periodically.
4214e98fc9045e5010e66f9a967bd6d68f40d342aaron* samples/sample1/conf/sync.json describes how identities in the XML file source map to
8721697e2aece27b0e738519329f7976c72b27bfjerenkrantz identities in the internal repository target.
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantzData for this sample is stored in samples/sample1/data/xmlConnectorData.xml. The initial
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantzXML file contains two identities.
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbbTo run the sample, start OpenIDM with the configuration for sample 1:
ab71b233b3a36489e44a7b061c48293be0b17788jwoolley
571760de5e60c0b459cb11be45507b923cd023eejwoolley$ cd /path/to/openidm
571760de5e60c0b459cb11be45507b923cd023eejwoolley$ ./startup.sh -p samples/sample1
9180a5933673ffb1af633c255ceee029340f3b1erbb
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbbInitiate a reconciliation operation over the REST interface, as follows:
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard$ curl -k --header "Content-type: application/json" -u "openidm-admin:openidm-admin" -X POST "https://localhost:8443/openidm/recon?_action=recon&mapping=systemXmlfileAccounts_managedUser"
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbbAlternatively, edit samples/sample1/conf/schedule-reconcile_systemXmlAccounts_managedUser.json
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbbto enable scheduled reconciliation:
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein "enabled" : true,
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick
6f6f4a4bca281779d196acbdd5c017bb90858305trawickThe following curl command requests all identifiers in OpenIDM's internal
8dd4618c4709236b4ea297d7250d282e463ce2d8rbbrepository. Use it to see the results after reconciliation for example.
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb$ curl -k -u "openidm-admin:openidm-admin" "https://localhost:8443/openidm/managed/user?_queryId=query-all&fields=*&_prettyPrint=true"
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb{
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj "result" : [ {
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj "mail" : "bjensen@example.com",
af4c982a7cf4515f124935f99a329744035fc699slive "sn" : "Jensen",
af4c982a7cf4515f124935f99a329744035fc699slive "passwordAttempts" : "0",
af4c982a7cf4515f124935f99a329744035fc699slive "lastPasswordAttempt" : "Sun Mar 16 2014 20:54:53 GMT-0700 (PDT)",
af4c982a7cf4515f124935f99a329744035fc699slive "address2" : "",
af4c982a7cf4515f124935f99a329744035fc699slive "givenName" : "Barbara",
af4c982a7cf4515f124935f99a329744035fc699slive "securityQuestion" : "1",
af4c982a7cf4515f124935f99a329744035fc699slive "country" : "",
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe "city" : "",
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe "lastPasswordSet" : "",
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe "postalCode" : "",
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe "_id" : "bjensen",
10270f6f94b2069d0d357805c140a9897449b9ccianh "_rev" : "1",
4b62424416882687387923b3130b96241503cbe0jerenkrantz "description" : "Created By XML1",
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz "accountStatus" : "active",
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz "telephoneNumber" : "1234567",
45b0e1c775c1cfed6473c9e5304179ccb9609f53stoddard "roles" : "openidm-authorized",
dbec4658981e4f9127e8676457c28d42932be7cdtrawick "postalAddress" : "",
1b7e9aeb9867a1c94e24e8ae491d2dfcd0d225e3jerenkrantz "stateProvince" : "",
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz "userName" : "bjensen@example.com"
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz }, {
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick "mail" : "scarter@example.com",
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick "sn" : "Carter",
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick "passwordAttempts" : "0",
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick "lastPasswordAttempt" : "Sun Mar 16 2014 20:54:53 GMT-0700 (PDT)",
ae72c92fd41562d7c0e8627c093fcbbae4ac9ef2coar "address2" : "",
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick "givenName" : "Steven",
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick "securityQuestion" : "1",
418f39e60a288f855ec033b566744489c3bbbf39trawick "country" : "",
cc22a72861c58dda7f3768613aec864e4c4e0353striker "city" : "",
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick "lastPasswordSet" : "",
ddafc111b94558ef4e2d7357ceda623315566ce3slive "postalCode" : "",
ddafc111b94558ef4e2d7357ceda623315566ce3slive "_id" : "scarter",
ae72c92fd41562d7c0e8627c093fcbbae4ac9ef2coar "_rev" : "1",
ddafc111b94558ef4e2d7357ceda623315566ce3slive "description" : "Created By XML1",
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb "accountStatus" : "active",
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb "telephoneNumber" : "1234567",
cc22a72861c58dda7f3768613aec864e4c4e0353striker "roles" : "admin",
a4d9e6fdcd5d2ddd93a896b42a1d607ed258c316ianh "postalAddress" : "",
a4d9e6fdcd5d2ddd93a896b42a1d607ed258c316ianh "stateProvince" : "",
ae72c92fd41562d7c0e8627c093fcbbae4ac9ef2coar "userName" : "scarter@example.com"
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb } ],
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz "resultCount" : 2,
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz "pagedResultsCookie" : null,
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz "remainingPagedResults" : -1
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz}
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz