unit testing automated password assignment

Lars Engels lars.engels at 0x20.net
Wed Nov 18 12:29:48 UTC 2009


Quoting Boris Kochergin <spawk at acm.poly.edu>:

> Aryeh Friedman wrote:
>> I have a script that automatically creates a user and sets their password:
>>
>> echo $3 | sudo pw useradd $1 -m -c "$2" -s tcsh -h0
>>
>> and by my employer's policy I need to unit test... my question is
>> how... the checking for user existence and such is easy but how do I
>> test that the password is correct?

And if you want to enforce strong passwords, take a look at pam_passwdqc(8).


-- 
Lars Engels
E-Mail: lars.engels at 0x20.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: PGP Digital Signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20091118/8b7c8d1d/attachment.pgp


More information about the freebsd-hackers mailing list