Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2009 13:29:46 +0100
From:      Lars Engels <lars.engels@0x20.net>
To:        Boris Kochergin <spawk@acm.poly.edu>
Cc:        freebsd-hackers@freebsd.org, Aryeh Friedman <aryeh.friedman@gmail.com>
Subject:   Re: unit testing automated password assignment
Message-ID:  <20091118132946.w7k3l8bm8c4gkook@0x20.net>
In-Reply-To: <4B02F99E.2030205@acm.poly.edu>
References:  <bef9a7920911171056p653714a8j5e0663c5da0e17ef@mail.gmail.com> <4B02F99E.2030205@acm.poly.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format and has been PGP signed.

--=_7ak289ysyyo0
Content-Type: text/plain;
	charset=UTF-8;
	DelSp="Yes";
	format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Quoting Boris Kochergin <spawk@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@0x20.net

--=_7ak289ysyyo0
Content-Type: application/pgp-signature
Content-Description: PGP Digital Signature
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAksD6LoACgkQKc512sD3afhpiwCfRAWGoXN0PShrCEisPxg/16KO
SiIAmQFRobp5Ded+vwyzXSpNHV2TIhMu
=btms
-----END PGP SIGNATURE-----

--=_7ak289ysyyo0--




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