From: wessels <> Date: Tue, 26 Jun 2001 23:17:53 +0000 (+0000) Subject: Bugzilla #172: Ident Based ACLs fail when applied to cache_peer_access X-Git-Tag: SQUID_3_0_PRE1~1487 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94e7025ec449c725a36d543fc8ed8a2fc08cae8b;p=thirdparty%2Fsquid.git Bugzilla #172: Ident Based ACLs fail when applied to cache_peer_access 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. --- diff --git a/src/neighbors.cc b/src/neighbors.cc index 3e9d23a4dd..6c55467fb5 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -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); }