I want to do synchronization between openIDM and openDJ. The synchronization works for all the fields except the password field. I want the password to be stored in openDJ when a user is created in openIDM. What are the steps required to implement this?
You need to use such a configuration in openidm/conf/sync.json:
{
"source" : "password",
"condition" : {
"type" : "text/javascript",
"source" : "object.password != null"
},
"transform" : {
"type" : "text/javascript",
"source" : "openidm.decrypt(source);"
},
"target" : "userPassword"
}
You can check out sample2b documentation that describes a 2-ways sync between OpenDJ and OpenIDM repo. But note that this sample does password sync only on OpenIDM Trunk (3.0)