]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugzilla #172: Ident Based ACLs fail when applied to cache_peer_access
authorwessels <>
Tue, 26 Jun 2001 23:17:53 +0000 (23:17 +0000)
committerwessels <>
Tue, 26 Jun 2001 23:17:53 +0000 (23:17 +0000)
The aclCheck_t structure passed for cache_peer_access didn't copy
the user_ident string from the request_t structure.  Further evidence
that the multiple locations for ident/proxyauth username strings needs
to be fixed and probably rewritten.

src/neighbors.cc

index 3e9d23a4ddd39ee9e3513ff372f86a49e3148813..6c55467fb5931f172f1f8aa82cc6ab547ea1a0bf 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: neighbors.cc,v 1.295 2001/04/14 00:25:18 hno Exp $
+ * $Id: neighbors.cc,v 1.296 2001/06/26 17:17:53 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -151,6 +151,10 @@ peerAllowedToUse(const peer * p, request_t * request)
     checklist.my_addr = request->my_addr;
     checklist.my_port = request->my_port;
     checklist.request = request;
+#if USE_IDENT
+    if (request->user_ident[0])
+       xstrncpy(checklist.ident, request->user_ident, USER_IDENT_SZ);
+#endif
     return aclCheckFast(p->access, &checklist);
 }