The multiple-passwords sample shipped within OpenIDM 6.5.x and 7.0.0 is fundamentally broken. The sample has a requirement to store clear text passwords within the OriginResourceContext found within the Context chain upon creation of a new managed user. This mechanism is now broken.
Prior to the 6.5 release the OriginResourceContext was known as ManagedObjectContext and provided the capability to store arbitrary fields within the Context. The ManagedObjectContext was created by the ManagedObjectService whenever handling requests, however the new OriginResourceContext is no longer added to the Context chain under for each managed object request, nor does it have the ability to store arbitrary data. This has resulted in to fundamental flaws in the sample:
- The Context upon which the `storeFields.groovy` script relies in never present in the Context chain at the time the script is invoked
- The OriginResourceContext (were it present) does not provide the capability to store arbitrary data within the Context, making it available to consumers further down the request processing chain
As a result this sample can not work as designed and needs to be re-implemented using some other mechanism.