unit testing automated password assignment

Boris Kochergin spawk at acm.poly.edu
Tue Nov 17 19:30:31 UTC 2009


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?
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>   
Have a look at http://cr.yp.to/checkpwd.html. A FreeBSD port is 
available in security/checkpassword.

-Boris


More information about the freebsd-hackers mailing list