Stas Bekman wrote:

>Steve, please try the current cvs for this test. Win32 is now skipped for 
>crypt, but I added sha1 and md5 sub-tests. Got the hashes from htpasswd. Thanks.
>
Still not quite right:

t\apr\util....1..4
# Running under perl version 5.008004 for MSWin32
# Current time local: Thu May 27 09:31:31 2004
# Current time GMT:   Thu May 27 08:31:31 2004
# Using Test.pm version 1.24
ok 1
# crypt
# crypt is not supported on MSWin32
ok 2
# sha1
not ok 3
# md5
ok 4
FAILED test 3

This is really weird - it looks like SHA-1 is failing, but running 
htpasswd on my machine (using the same Apache 2.0.49 as mp2 is using) it 
seems to be MD5 that disagrees with the values in the test file.

The test file contains this:

    md5   => '$apr1$Kld6H/..$o5OPPPWslI3zB20S54u9s1',
    sha1  => '{SHA}A5NpTRa4TethLkfOYlK9NfDYbAY=',

Running

    C:\apache2\bin>.\htpasswd -nbs user "this is some text"

outputs

    user:{SHA}A5NpTRa4TethLkfOYlK9NfDYbAY=

which looks fine, but changing the -nbs to -nbm disagrees with the test 
file data, and doesn't even give the same answer every time:

    C:\apache2\bin>.\htpasswd -nbm user "this is some text"
    user:$apr1$/b......$jr0lO2qReuruvVOd4T/eO.
    C:\apache2\bin>.\htpasswd -nbm user "this is some text"
    user:$apr1$6b......$6u//KfKBjzrGboSSY2HiN/
    C:\apache2\bin>.\htpasswd -nbm user "this is some text"
    user:$apr1$Fb......$b1RNgyEDm0TTIswEvh3ZY1

Is this what you'd expect???

- Steve



------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are 
confidential and intended for the addressee(s) only.  If you have received this 
message in error or there are any problems, please notify the sender immediately.  The 
unauthorized use, disclosure, copying or alteration of this message is strictly 
forbidden.  Note that any views or opinions presented in this email are solely those 
of the author and do not necessarily represent those of Radan Computational Ltd.  The 
recipient(s) of this message should check it and any attached files for viruses: Radan 
Computational will accept no liability for any damage caused by any virus transmitted 
by this email.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to