Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-6658

Remove section on managed.json update and onUpdate hook for password sync

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: OpenIDM 4.5.0
    • Fix Version/s: OpenIDM 5.0.0
    • Component/s: documentation
    • Labels:

      Description

      See https://forgerock.org/openidm/doc/bootstrap/integrators-guide/index.html#pwd-sync-openidm-config-ad

      Docs say to modify onUpdate hook and give example. By default, there is already a specified onUpdate script in 4.5:

                  "onUpdate" : {
                      "type" : "text/javascript",
                      "globals" : { },
                      "source" : "require('ui/onUpdateUser').preserveLastSync(object, oldObject, request);require('roles/conditionalRoles').updateConditionalGrantsForUser(object, 'roles');"
                  },
      
      

      It's not clear how to append the extra script about password changes but I presume it would be:

      
                  "onUpdate" : {
                      "type" : "text/javascript",
                      "globals" : { },
                      "source" : "require('ui/onUpdateUser').preserveLastSync(object, oldObject, request);require('roles/conditionalRoles').updateConditionalGrantsForUser(object, 'roles');if (newObject.userPassword !== openidm.decrypt(oldObject.userPassword)) { newObject.password = newObject.userPassword; }"
                  },
      

        Attachments

          Activity

            People

            • Assignee:
              Lana Lana Frost
              Reporter:
              mark.offutt Mark Offutt
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: