Reset password
Version >= 0.9.4
Presentation
The portal displays a form where the user can
enter his mail address to reset his password. The mail will be search in
userDB (for example the LDAP directory) and if the user is found, the
password will be overwritten with a new one. The new password is sent by
mail.
If passwordDB is LDAP, and password policy is
activated, the flag pwdReset is set to TRUE, so that the user is forced to
change his password on next connection (require pwdMustChange true value
in user's ppolicy).
Configuration
You can configure the mail:
- SMTPServer: IP or hostname of the SMTP server (default:
localhost)
- mailFrom: address seen in the "From" field (default:
noreply@domain)
- mailSubject: subject (default: Change password request)
- mailBody: body, you can use $password and all exported attributes
here (default: Your new password is $password)
- randomPasswordRegexp: regular expression used to generate the
password (default: [A-Z]{3}[a-z]{5}.\d{2})
If you use PasswordDBLDAP:
- mailLDAPFilter: filter to get the user (default:
'(&(mail=$mail)(objectClass=inetOrgPerson))')
- ldapPpolicyControl: activate password policy (default: 0)
Example of custom mail body:
mailBody => 'Hello $cn,
You request a new password. Your new password is $password.
Thank you,
The security team.',
See also