Robot to be run periodically from cron and handle RT user password reset tickets that come from the website. This semi-automates the steps of changing the password to a temporary generated password in LDAP and emailing the user about the change.

User intervention is required to confirm that the ticket is valid before going ahead with the reset.

Tickets are identified as password reset requests if the first comment contains at least one noun and at least one verb from the lists in this module, or if a further comment includes the special token “account bot reset password”. Administrators can mark unidentified tickets by adding that text in a comment.

class accre.bots.password_resetter.PWRequest(ticket, vunetid, email, priority)

Bases: tuple


Alias for field number 2


Alias for field number 3


Alias for field number 0


Alias for field number 1

accre.bots.password_resetter.PW_RESET_NOUNS = {'credentials', 'creds', 'login', 'passphrase', 'passwd', 'password'}

Password reset nouns for ticket identification

accre.bots.password_resetter.PW_RESET_VERBS = {'change', 'expire', 'expired', 'forgot', 'forgotten', 'lost', 'reset'}

Password reset verbs for ticket identification

class accre.bots.password_resetter.PasswordResetter[source]

Bases: object

Object to handle password resets by calling the run method.


Run the password resetter on all identified requests.


CLI endpoint to run the password resetter, searching through all RT tickets and performing appropriate steps for handling the request.