From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 18 12:29:48 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC1D810656A4 for ; Wed, 18 Nov 2009 12:29:48 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mx1.freebsd.org (Postfix) with ESMTP id 79F508FC22 for ; Wed, 18 Nov 2009 12:29:48 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mail.0x20.net (Postfix) with ESMTP id 0674634B55; Wed, 18 Nov 2009 13:29:47 +0100 (CET) Received: from i011-63.fin-nrw.de (i011-63.fin-nrw.de [193.109.238.130]) by 0x20.net (Horde MIME library) with HTTP; Wed, 18 Nov 2009 13:29:46 +0100 Message-ID: <20091118132946.w7k3l8bm8c4gkook@0x20.net> X-Priority: 3 (Normal) Date: Wed, 18 Nov 2009 13:29:46 +0100 From: Lars Engels To: Boris Kochergin References: <4B02F99E.2030205@acm.poly.edu> In-Reply-To: <4B02F99E.2030205@acm.poly.edu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_7ak289ysyyo0"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) X-Mailman-Approved-At: Wed, 18 Nov 2009 12:45:18 +0000 Cc: freebsd-hackers@freebsd.org, Aryeh Friedman Subject: Re: unit testing automated password assignment X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 12:29:48 -0000 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 : > 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--