Date: Wed, 05 Jan 2011 11:45:08 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: "Christopher J. Ruwe" <cjr@cruwe.de> Cc: freebsd-hackers@freebsd.org, freebsd-doc@freebsd.org, freebsd-questions@freebsd.org, freebsd-security@freebsd.org Subject: Re: setting a random password with PAM API Message-ID: <864o9nhbnv.fsf@ds4.des.no> In-Reply-To: <20101229232030.25b2bd5a@dijkstra> (Christopher J. Ruwe's message of "Wed, 29 Dec 2010 23:20:30 %2B0100") References: <20101229232030.25b2bd5a@dijkstra>
next in thread | previous in thread | raw e-mail | index | archive | help
"Christopher J. Ruwe" <cjr@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 --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864o9nhbnv.fsf>