From: Amos Jeffries Date: Sun, 10 Aug 2008 12:45:41 +0000 (+1200) Subject: Author: Dmitry Kurochkin X-Git-Tag: SQUID_3_1_0_1~49^2~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a51202ebd168122be1542debb8ca3c49567d99b;p=thirdparty%2Fsquid.git Author: Dmitry Kurochkin Bug: 23512: no_check.pl ntlm helper never sends challenge --- diff --git a/helpers/ntlm_auth/no_check/no_check.pl b/helpers/ntlm_auth/no_check/no_check.pl index 891d0ddb67..414df0b470 100644 --- a/helpers/ntlm_auth/no_check/no_check.pl +++ b/helpers/ntlm_auth/no_check/no_check.pl @@ -15,7 +15,7 @@ die ("Edit $0 to configure a domain!") unless (defined($authdomain)); while() { chop; - if (substr($_, 2) eq "YR") { + if (substr($_, 0, 2) eq "YR") { print "TT ".encode_base64(&make_ntlm_static_challenge); next; } @@ -32,11 +32,11 @@ while() { } if ($res{type} eq "challenge") { # Huh? WE are the challengers. print "BH Squid-helper protocol error: unexpected challenge-request\n"; - next; + next; } if ($res{type} eq "authentication") { print "AF $res{domain}\\$res{user}\n"; - next; + next; } print "BH internal error\n"; # internal error }