I would like to write self service password service for our organization , the identity source is our active directory.
To accomplish this task i choose to use ldap3 library , reset password procedure would be simple template with enter your mail , backend will look for email user attribute existence, if it is will send token temporary for x amount of time url to user email, that would let him eventually reset password template .
I know that Django have internal mechanism for user s reset password such as
from django.contrib.auth.tokens import PasswordResetTokenGenerator
But I guess this is not relevant for my use case , my question/advice I would like to get is.
How to accomplish such task what library ,mechanism and logic should i use ?