--------------------- PatchSet 1444 Date: 2001/01/30 17:12:33 Author: kinkie Branch: auth_rewrite Tag: (none) Log: Cleaned up error retrieval a bit. Got rid of the retries thing. If communications to the DC are broken, they are broken, no matter how long we insist. Members: src/auth/ntlm/helpers/NTLMSSP/libntlmssp.c:1.1.2.3->1.1.2.4 Index: squid/src/auth/ntlm/helpers/NTLMSSP/libntlmssp.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/auth/ntlm/helpers/NTLMSSP/Attic/libntlmssp.c,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -r1.1.2.3 -r1.1.2.4 --- squid/src/auth/ntlm/helpers/NTLMSSP/libntlmssp.c 30 Jan 2001 10:57:44 -0000 1.1.2.3 +++ squid/src/auth/ntlm/helpers/NTLMSSP/libntlmssp.c 30 Jan 2001 17:12:33 -0000 1.1.2.4 @@ -29,9 +29,9 @@ #endif /* these are part of rfcnb-priv.h and smblib-priv.h */ -extern int RFCNB_errno; extern int SMB_Get_Error_Msg (int msg, char *msgbuf, int len); extern int SMB_Get_Last_Error (); +extern int RFCNB_Get_Last_Errno(); #include "smblib-priv.h" /* for SMB_Handle_Type */ @@ -236,16 +236,7 @@ debug ("checking domain: '%s', user: '%s', pass='%s'\n", domain, user, pass); rv = SMB_Logon_Server (handle, user, pass, domain, 1); - debug ("First login attempt had result %d\n", rv); - - while ((rv == NTLM_BAD_PROTOCOL || rv == NTLM_SERVER_ERROR) && retries < BAD_DC_RETRIES_NUMBER) - { - retries++; - /* usleep((unsigned long) 100000); */ - sleep (1); - rv = SMB_Logon_Server (handle, user, pass, domain, 1); - debug ("Logon attempt #%d result: %d\n", retries, rv); - } + debug ("Login attempt had result %d\n", rv); if (rv != NTV_NO_ERROR) { /* failed */