setting a random password with PAM API
Dag-Erling Smørgrav
des at des.no
Wed Jan 5 10:45:10 UTC 2011
"Christopher J. Ruwe" <cjr at cruwe.de> writes:
> I am trying to implement the feature to set a random password like in
> BSD "pw usermod -W" in the Solaris passwd. Regrettably, I have not
> found or perhaps not understood the PAM API documentation on how to
> _inject a given string_ into the change-auth-token function
> pam_chauthtok(...), which always jumps in an interactive pw-changing
> loop.
There is no reliable way to do that. You don't even know that there is
such a thing as a password.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-security
mailing list