]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Update to debug logging regarding NT responses.
authorhno <>
Fri, 20 Sep 2002 15:43:08 +0000 (15:43 +0000)
committerhno <>
Fri, 20 Sep 2002 15:43:08 +0000 (15:43 +0000)
(Francesco Chemolli)

helpers/ntlm_auth/winbind/wb_ntlm_auth.c

index b5cb69612e33c175295f21e376ad62727f766fd1..463d071cd2e7ffdac9c9b70d0592c0f569f514cc 100644 (file)
@@ -220,6 +220,7 @@ do_authenticate(ntlm_authenticate * auth, int auth_length)
        return;
     }
 
+    have_nthash = 0;
     nthash = ntlm_fetch_string((char *) auth, auth_length, &auth->ntresponse);
     switch (nthash.l) {
     case 0:
@@ -229,11 +230,12 @@ do_authenticate(ntlm_authenticate * auth, int auth_length)
     case 24:
        memcpy(request.data.auth_crap.nt_resp, nthash.str, 24);
        request.data.auth_crap.nt_resp_len = 24;
+       have_nthash = 1;
        break;
     default:
-       debug("nthash len = %d\n", nthash.l);
-       authfail(domain, user, "Broken NT hash response");
-       return;
+       debug("nthash len = %d. Ignoring it.\n", nthash.l);
+       request.data.auth_crap.nt_resp_len = 0;
+       break;
     }
 
     debug("Checking user '%s\\%s' lmhash len =%d, have_nthash=%d, "