]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1792: max_user_ip not working with ntlm_auth
authorhno <>
Wed, 3 Jan 2007 19:39:48 +0000 (19:39 +0000)
committerhno <>
Wed, 3 Jan 2007 19:39:48 +0000 (19:39 +0000)
the ntlm/negotiate scheme reqrite was a bit confused about the FINISHED
vs DONE states, skipping a little of the processing required for the
user and ip caches.

src/auth/negotiate/auth_negotiate.cc
src/auth/ntlm/auth_ntlm.cc

index 0ca74aebea1af57b3d1880d37209cca20088ec0d..eecf4019d57708760ea16760f48d55e135cac14e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: auth_negotiate.cc,v 1.11 2006/09/03 04:12:01 hno Exp $
+ * $Id: auth_negotiate.cc,v 1.12 2007/01/03 12:39:48 hno Exp $
  *
  * DEBUG: section 29    Negotiate Authenticator
  * AUTHOR: Robert Collins, Henrik Nordstrom, Francesco Chemolli
@@ -617,7 +617,7 @@ AuthNegotiateConfig::decode(char const *proxy_auth)
 int
 AuthNegotiateUserRequest::authenticated() const
 {
-    if (auth_state == AUTHENTICATE_STATE_FINISHED) {
+    if (auth_state == AUTHENTICATE_STATE_DONE) {
         debug(29, 9) ("AuthNegotiateUserRequest::authenticated: user authenticated.\n");
         return 1;
     }
index 5ff7d549c13381d1d0d17ee18495e98dfc35e37d..06a0e4015439068b6e69bad7d60a66189cc5a814 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: auth_ntlm.cc,v 1.60 2006/09/03 04:12:02 hno Exp $
+ * $Id: auth_ntlm.cc,v 1.61 2007/01/03 12:39:49 hno Exp $
  *
  * DEBUG: section 29    NTLM Authenticator
  * AUTHOR: Robert Collins, Henrik Nordstrom, Francesco Chemolli
@@ -548,7 +548,7 @@ AuthNTLMConfig::decode(char const *proxy_auth)
 int
 AuthNTLMUserRequest::authenticated() const
 {
-    if (auth_state == AUTHENTICATE_STATE_FINISHED) {
+    if (auth_state == AUTHENTICATE_STATE_DONE) {
         debug(29, 9) ("AuthNTLMUserRequest::authenticated: user authenticated.\n");
         return 1;
     }