Mailing List Archive

pam_chauthtok placement
Can I ask for some advice, as to where in the code would be the logical
place to add code to ask a user to change his password? Presumably
do_pam_account is the *wrong* place. Guess I should build a
do_pam_password function, but who should be calling it?
Re: pam_chauthtok placement [ In reply to ]
On Wed, May 31, Chip Christian wrote:
> Can I ask for some advice, as to where in the code would be the logical
> place to add code to ask a user to change his password? Presumably
> do_pam_account is the *wrong* place. Guess I should build a
> do_pam_password function, but who should be calling it?

I think it would be nice to have the ability to prompt for a new password
even if you don't use pam. So maybe it could be more general function ?

-Jarno