sync.json revision b683933fe7e4ad95f531714fe6f3773a2efd2ca9
{
"mappings" : [
{
"name" : "systemXmlAccounts_managedUser",
"source" : "system/ldap/account",
"target" : "managed/user",
"validTarget": {
"type": "text/javascript",
"source": "target.employeeType == 'external'"
},
"properties" : [
{ "source" : "name", "target" : "name" },
{ "source" : "lastname", "target" : "lastname" },
{ "source" : "firstname", "target" : "firstname" },
{ "source" : "email", "target" : "email" },
{ "default" : "external", "target" : "employeeType" }
],
"onCreate" : {
"type": "text/javascript",
"source": "target.ldapPassword = null;target.adPassword = null;"
}
},
{
"name": "managedUser_systemXmlTargetAccounts",
"source": "managed/user",
"target": "system/ad/account",
"correlationQuery" : {
"type": "text/javascript",
"file": "jscript/name_eq_name_correlationQuery.js"
},
"properties": [
{ "source" : "name", "target" : "name" },
{ "source" : "lastname", "target" : "lastname" },
{ "source" : "firstname", "target" : "firstname" },
{ "source" : "email", "target" : "email" },
{ "source" : "ldapPassword",
"target" : "__PASSWORD__",
"condition" : {
"type": "text/javascript",
"file": "jscript/ldapPassword_to_ad_condition.js"
}
},
{ "default" : "defaultpwd", "target" : "IGNORE__PASSWORD__" }
],
"onCreate" : {
"type": "text/javascript",
"source": "target.__PASSWORD__ = 'initial_Passw0rd'"
}
},
{
"name": "managedUser_systemXmlAccounts",
"source": "managed/user",
"target": "system/ldap/account",
"correlationQuery" : {
"type": "text/javascript",
"file": "jscript/name_eq_name_correlationQuery.js"
},
"validSource" : {
"type": "text/javascript",
"source": "source.adPassword != null"
},
"properties": [
{ "source" : "adPassword",
"target" : "__PASSWORD__",
"condition" : {
"type": "text/javascript",
"file": "jscript/adPassword_to_ldap_condition.js"
}
}
],
"policies" : [
{ "situation" : "CONFIRMED",
"comment" : "IGNORE during initial reconciles, UPDATE when all initial links in place",
"action" : "UPDATE"
},
{ "situation" : "FOUND",
"comment" : "LINK during initial reconciles, UPDATE when all initial links in place",
"action" : "UPDATE"
},
{ "situation" : "ABSENT",
"comment" : "IGNORE during initial reconciles",
"action" : {
"comment" : "CREATE if employee, IGNORE otherwise?",
"type" : "text/javascript",
"source" : "if (1>0) {'CREATE';} else {'IGNORE';}"
}
},
{ "situation" : "AMBIGUOUS", "action" : "EXCEPTION" },
{ "situation" : "MISSING", "action" : "EXCEPTION" },
{ "situation" : "UNQUALIFIED", "action" : "UNLINK" },
{ "situation" : "UNASSIGNED", "action" : "EXCEPTION" }
]
},
{
"name" : "systemLdapAccount_managedUser",
"source" : "system/OpenDJ/__ACCOUNT__",
"target" : "managed/user",
"validTarget": {
"type": "text/javascript",
"source": "target.employeeType == 'internal'"
},
"policies" : [
{
"situation": "UNQUALIFIED",
"action": "IGNORE"
}
],
"properties" : [
{ "source" : "__NAME__", "target" : "distinguishedName" },
{ "source" : "uid", "target" : "name" },
{ "source" : "givenName", "target" : "firstname" },
{ "source" : "sn", "target" : "lastname" },
{ "source" : "description", "target" : "description" },
{ "source" : "employeeNumber", "target" : "employeeNumber" },
{ "source" : "homePhone", "target" : "homePhone" },
{ "source" : "initials", "target" : "initials" },
{ "source" : "l", "target" : "location" },
{ "source" : "mobile", "target" : "mobile" },
{ "source" : "pager", "target" : "pager" },
{ "source" : "mail", "target" : "email" },
{ "source" : "postalAddress", "target" : "postalAddress" },
{ "source" : "postalCode", "target" : "postalCode" },
{ "source" : "st", "target" : "state" },
{ "source" : "street", "target" : "street" },
{ "source" : "telephoneNumber", "target" : "telephoneNumber" },
{ "source" : "employeeType", "target" : "employeeType" },
{ "source" : "departmentNumber", "target" : "departmentNumber" },
{ "source" : "seeAlso", "target" : "seeAlso" },
{ "default" : "internal", "target" : "employeeType" }
]
}
]
}