freeipa / freeipa-community-portal

[ABANDONED] FreeIPA Community Portal extension
GNU General Public License v3.0
4 stars 6 forks source link

Login and password change should invalidate password reset token #39

Open tiran opened 8 years ago

tiran commented 8 years ago

A successful login or a password change should invalidate the current password reset token. Both operations are evidence that either the user is still in possession of valid credentials or that an admin has forcefully reset the password.

FreeIPA keeps track of logins and password changes in the LDAP attributes krbLastPwdChange and krbLastSuccessfulAuth. When a user requests a password reset, the portal should store the fields in its sqlite database. Upon reset it compares the values with the current values. If the values are newer, it shall refuse a password reset.

See #38