May 25, 2017 at 5:21 pm #17473cristianoburgoParticipant
I need to update the password from openidm to AD only if this is changed on OPENIDM.
In fact if the password is set into a mapping this is changed on AD even if it is not changed.
This has a weird behaviour because the password changed on AD change also automatically the AD attribute pwdLastset and so the user cannot change its password because this was already changed the same day.
So what i would like to do is to insert a conditional update into the mapping like:
But i cannot write a condition on the new value comparing the old value because the object: oldSource is not avalaible.
The documentation say different (Table F.2. Script Triggers Defined in sync.json), for “condition” are avalaible the following object:
object, linkQualifier, target, oldTarget,
oldSource – when available, generally during an update
June 7, 2017 at 10:05 am #17607cristianoburgoParticipant
- This topic was modified 4 years, 6 months ago by cristianoburgo.
Just solved using a “flag” field to store if the password is changed on openidm.
Then use this field during a conditional update:
object.adpwdchg == ‘1’;
After the update this field is then restored to ‘0’ so during the next update the password is not changed again.
You must be logged in to reply to this topic.