Skip Menu |

This queue is for tickets about the Win32API-Net CPAN distribution.

Report information
The Basics
Id: 24824
Status: new
Priority: 0/
Queue: Win32API-Net

People
Owner: Nobody in particular
Requestors: jhein [...] timing.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [patch] test failure on install of libwin32-0.26 - bad password
Date: Tue, 6 Feb 2007 15:07:08 -0700
To: bug-libwin32 [...] rt.cpan.org
From: John E Hein <jhein [...] timing.com>
I get a failure when installing libwin32-0.26. make[1]: Entering directory `/home/jhein/.cpan/build/libwin32-0.26/APINet' /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, '../blib/lib', '../blib/arch')" t/*.t t/test.... t/test....ok 1/18not ok 5 Can't add a user so there really isn't any point in continuing... t/test....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 5-18 Failed 14/18 tests, 22.22% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/test.t 255 65280 18 28 155.56% 5-18 Failed 1/1 test scripts, 0.00% okay. 14/18 subtests failed, 22.22% okay. make[1]: *** [test_dynamic] Error 255 make[1]: Leaving directory `/home/jhein/.cpan/build/libwin32-0.26/APINet' As it turns out NetUserAdd is returning a 2245 (password too short). It's not that it's too short, but that the domain policy enforces "better" passwords (need a cap letter and a number). This patch fixes it: --- APINet/t/test.t.orig 2005-09-17 14:36:33.000000000 -0600 +++ APINet/t/test.t 2007-02-06 14:54:52.548497700 -0700 @@ -50,7 +50,7 @@ @testLogonHours=( 255 ) x 21; %testUserInfo3=( 'name' => $testUserName, - 'password' => "password", # don't worry - the account is disabled + 'password' => "pAssw0rd", # don't worry - the account is disabled 'passwordAge' => 0, 'priv' => USER_PRIV_USER(), 'homeDir' => $ENV{'TEMP'},