sync.json revision 7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7
{
"mappings" : [
{
"name" : "systemLdapAccounts_managedUser",
"source" : "system/ldap/account",
"target" : "managed/user",
"properties" : [
{
"source" : "cn",
"target" : "displayName"
},
{
"source" : "description",
"target" : "description"
},
{
"source" : "givenName",
"target" : "givenName"
},
{
"source" : "mail",
"target" : "mail"
},
{
"source" : "telephoneNumber",
"target" : "telephoneNumber"
},
{
"source" : "sn",
"target" : "sn"
},
{
"source" : "uid",
"target" : "userName"
},
{
"source" : "ldapGroups",
"target" : "ldapGroups"
}
],
"policies" : [
{
"situation" : "CONFIRMED",
"action" : "UPDATE"
},
{
"situation" : "FOUND",
"action" : "UPDATE"
},
{
"situation" : "ABSENT",
"action" : "CREATE"
},
{
"situation" : "AMBIGUOUS",
"action" : "EXCEPTION"
},
{
"situation" : "MISSING",
"action" : "UNLINK"
},
{
"situation" : "SOURCE_MISSING",
"action" : "EXCEPTION"
},
{
"situation" : "UNQUALIFIED",
"action" : "IGNORE"
},
{
"situation" : "UNASSIGNED",
"action" : "IGNORE"
}
]
},
{
"name" : "managedUser_systemLdapAccounts",
"source" : "managed/user",
"target" : "system/ldap/account",
"links" : "systemLdapAccounts_managedUser",
"correlationQuery" : {
"type" : "text/javascript",
"file" : "script/ldapBackCorrelationQuery.js"
},
"properties" : [
{
"source" : "givenName",
"target" : "givenName"
},
{
"source" : "sn",
"target" : "sn"
},
{
"source" : "",
"transform": {
"type": "text/javascript",
},
"target" : "cn"
},
{
"source" : "userName",
"target" : "uid"
},
{
"source" : "description",
"target" : "description",
"condition" : {
"type" : "text/javascript",
"source" : "typeof(object.description) !== 'undefined' && object.description !== null;"
}
},
{
"source" : "mail",
"target" : "mail"
},
{
"source" : "password",
"transform" : {
"type" : "text/javascript",
"source" : "openidm.decrypt(source)"
},
"condition" : {
"type" : "text/javascript",
"source" : "object.password != null"
},
"target" : "password"
},
{
"source" : "telephoneNumber",
"target" : "telephoneNumber"
},
{
"source" : "ldapGroups",
"target" : "ldapGroups"
}
],
"onCreate" : {
"type" : "text/javascript",
"source" : "target.dn = 'uid=' + source.userName + ',ou=People,dc=example,dc=com';"
},
"policies" : [
{
"situation" : "CONFIRMED",
"action" : "UPDATE"
},
{
"situation" : "FOUND",
"action" : "LINK"
},
{
"situation" : "ABSENT",
"action" : "CREATE"
},
{
"situation" : "AMBIGUOUS",
"action" : "IGNORE"
},
{
"situation" : "MISSING",
"action" : "IGNORE"
},
{
"situation" : "SOURCE_MISSING",
"action" : "DELETE"
},
{
"situation" : "UNQUALIFIED",
"action" : "IGNORE"
},
{
"situation" : "UNASSIGNED",
"action" : "IGNORE"
}
]
}
]
}