From 2a51202ebd168122be1542debb8ca3c49567d99b Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 11 Aug 2008 00:45:41 +1200 Subject: [PATCH] Author: Dmitry Kurochkin Bug: 23512: no_check.pl ntlm helper never sends challenge --- helpers/ntlm_auth/no_check/no_check.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 } -- 2.47.3