--------------------- PatchSet 522 Date: 2000/08/10 15:08:04 Author: kinkie Branch: ntlm Tag: (none) Log: Force disconnection after issuing results, not just before issuing challenge. This seems to fix a problem with DC not correctly authenticating. Members: ntlm_auth_modules/NTLMSSP/libntlmssp.c:1.1.2.6->1.1.2.7 Index: squid/ntlm_auth_modules/NTLMSSP/libntlmssp.c =================================================================== RCS file: /cvsroot/squid-sf//squid/ntlm_auth_modules/NTLMSSP/Attic/libntlmssp.c,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -r1.1.2.6 -r1.1.2.7 --- squid/ntlm_auth_modules/NTLMSSP/libntlmssp.c 10 Aug 2000 11:48:20 -0000 1.1.2.6 +++ squid/ntlm_auth_modules/NTLMSSP/libntlmssp.c 10 Aug 2000 15:08:04 -0000 1.1.2.7 @@ -270,8 +270,13 @@ "NT LM 0.12", "NT LANMAN 1.0", NULL}; - if (handle != NULL) /* one challenge - one connection */ + + if (handle != NULL) +#if 1 /* one challenge - many connections */ + return; +#else /* one challenge - one connection */ SMB_Discon(handle,0); +#endif handle=SMB_Connect_Server(NULL,domain_controller,domain); @@ -382,6 +387,9 @@ rv=SMB_Logon_Server(handle,user,pass,domain,1); + SMB_Discon(handle,0); + handle=NULL; + debug("\tresult is %d\n",rv); if (rv!=NTV_NO_ERROR) /* failed */