Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2009 14:29:34 -0500
From:      Boris Kochergin <spawk@acm.poly.edu>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: unit testing automated password assignment
Message-ID:  <4B02F99E.2030205@acm.poly.edu>
In-Reply-To: <bef9a7920911171056p653714a8j5e0663c5da0e17ef@mail.gmail.com>
References:  <bef9a7920911171056p653714a8j5e0663c5da0e17ef@mail.gmail.com>

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

-Boris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B02F99E.2030205>