0

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?

Laurent Bristiel
  • 6,819
  • 34
  • 52
Soumyajit Swain
  • 1,298
  • 1
  • 21
  • 35

1 Answers1

3

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)

Laurent Bristiel
  • 6,819
  • 34
  • 52