Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
tutorial:adm:manage_ad [2021/06/24 07:43]
soval [Send additional attributes with password]
tutorial:adm:manage_ad [2021/06/24 14:46]
soval [Password mapping]
Line 165: Line 165:
   * Attribute with password - true   * Attribute with password - true
  
 +==== Forced password change ====  
 +When mapping AD attributes, it is sometimes useful to be able to set a forced password change option.  
 +
 +This requirement is often set for two different cases:
 +
 +* We need to change the password when logging into AD **for a new user account**
 +* We need to force a password change but **only after a password reset**
 +
 +1/ To force a password change for newly created users, map the **"pwdLastSet"** attribute. The attribute should be in the generated system schema, object "**\_\_ACCOUNT\_\_**" name "pwdLastSet", Data type "java.lang.Boolean". So add the attribute to the mapping and put "return true" in the transformation script(Transformation to system) and set the strategy "Write only on create of the entity".
 +
 +
 +2/ If we need to force password change every time password is reset, map attribute pwdLastSet too, but **with checkbox "Include on password" and "Include only when password is changed"** and strategy "Set value as it is" This can only be set since IdM version 11.0.
  
  
  • by neznajf