Re: unit testing automated password assignment

2009-11-18 Thread Lars Engels
Quoting Boris Kochergin sp...@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

Re: unit testing automated password assignment

2009-11-18 Thread Dag-Erling Smørgrav
Lars Engels lars.eng...@0x20.net writes: And if you want to enforce strong passwords, take a look at pam_passwdqc(8). Or don't, it's waaay out of date. I should import a newer version, just never got around to it. Patches are welcome. DES -- Dag-Erling Smørgrav - d...@des.no

Re: unit testing automated password assignment

2009-11-18 Thread Lars Engels
Quoting Dag-Erling Smørgrav d...@des.no: Lars Engels lars.eng...@0x20.net writes: And if you want to enforce strong passwords, take a look at pam_passwdqc(8). Or don't, it's waaay out of date. I should import a newer version, just never got around to it. Patches are welcome. Yes, today

unit testing automated password assignment

2009-11-17 Thread Aryeh Friedman
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?

Re: unit testing automated password assignment

2009-11-17 Thread 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