This function is called whenever the password should be changed. Account modules must change their password attributes only if the modules list contains their module name.
Tags:
return:
list of error messages if any as parameter array for StatusMessage e.g. return arrray(array('ERROR', 'Password change failed.'))
This function is called whenever the password should be changed. Account modules must change their password attributes only if the modules list contains their module name.
Parameters:
String
$password
new password
boolean
$forcePasswordChange
force the user to change his password at next login
$modules
$modules
list of modules for which the password should be changed
Returns a list of modifications which have to be made to the LDAP account.
Tags:
return:
list of modifications This function returns an array with 3 entries: array( DN1 ('add' => array($attr), 'remove' => array($attr), 'modify' => array($attr)), DN2 .... ) DN is the DN to change. It may be possible to change several DNs (e.g. create a new user and add him to some groups via attribute memberUid) "add" are attributes which have to be added to LDAP entry "remove" are attributes which have to be removed from LDAP entry "modify" are attributes which have to been modified in LDAP entry "info" are values with informational value (e.g. to be used later by pre/postModify actions)
Overrides baseModule::save_attributes() (Returns a list of modifications which have to be made to the LDAP account.)