On tor, 2007-08-23 at 19:44 +0300, Maxim Britov wrote: > > > > > > > I found squid-2.6stable14 doesn't work with miranda/ntlm_auth > > > > > > > I have 407 only. > > > > > > > > > > > > > > Without patchset #11529 it work fine now here. > > > > > > > > > > > > Odd.. that change should not break anythng. > > > > > > > > > > > > can you provide an ethereal packet trace of miranda use both with > > > > > > and > > > > > > without the changeset? > > > > > > > > > > tcpdump -s0 > > > > > Please try the attached patch. > > > > > > Doesn't work with your patch too. > > > > Can you send traffic traces with the patch. >
Thanks. Please try the attached patch. Regards Henrik
? bootstrap
? errors/list2
? scripts/merge-cf.data.pre.pl
? scripts/split-cf.data.pre.pl
Index: src/auth/ntlm/auth_ntlm.c
===================================================================
RCS file: /cvsroot/squid/squid/src/auth/ntlm/auth_ntlm.c,v
retrieving revision 1.40
diff -u -p -r1.40 auth_ntlm.c
--- src/auth/ntlm/auth_ntlm.c 4 Jul 2007 00:18:45 -0000 1.40
+++ src/auth/ntlm/auth_ntlm.c 24 Aug 2007 14:44:08 -0000
@@ -661,12 +661,6 @@ authenticateNTLMAuthenticateUser(auth_us
debug(29, 1) ("authenticateNTLMAuthenticateUser: attempt to perform authentication without a connection!\n");
return;
}
- if (!request->flags.proxy_keepalive) {
- debug(29, 2) ("authenticateNTLMAuthenticateUser: attempt to perform authentication without a persistent connection!\n");
- ntlm_request->auth_state = AUTHENTICATE_STATE_FAILED;
- request->flags.must_keepalive = 1;
- return;
- }
if (ntlm_request->waiting) {
debug(29, 1) ("authenticateNTLMAuthenticateUser: waiting for helper reply!\n");
return;
@@ -689,6 +683,12 @@ authenticateNTLMAuthenticateUser(auth_us
case AUTHENTICATE_STATE_NONE:
/* we've recieved a ntlm request. pass to a helper */
debug(29, 9) ("authenticateNTLMAuthenticateUser: auth state ntlm none. %s\n", proxy_auth);
+ if (!request->flags.proxy_keepalive) {
+ debug(29, 2) ("authenticateNTLMAuthenticateUser: attempt to perform ntlm authentication without a persistent connection!\n");
+ ntlm_request->auth_state = AUTHENTICATE_STATE_FAILED;
+ request->flags.must_keepalive = 1;
+ return;
+ }
ntlm_request->auth_state = AUTHENTICATE_STATE_INITIAL;
safe_free(ntlm_request->client_blob);
ntlm_request->client_blob = xstrdup(blob);
signature.asc
Description: This is a digitally signed message part
