Password Reset Script for Linux

My customer is asking if is it possible to make password reset on linux local users on check-out/check-in process.

As far as I understand it could be done with an password reset script like aws/sap/open stacks and so on. Is it correct?

Did Anyone something similary?
is there document or axample of this?