Search squid archive

Re: delay pools and ident access lists.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

Could you please review the following patch, which solves the problem for 
me. Do I have to fill PR ?

diff -ur squid-2.5.STABLE11/src/delay_pools.c squid-2.5.STABLE11.patched/src/delay_pools.c
--- squid-2.5.STABLE11/src/delay_pools.c	Sun Sep 11 05:49:53 2005
+++ squid-2.5.STABLE11.patched/src/delay_pools.c	Fri Oct 14 11:28:31 2005
@@ -323,6 +323,7 @@
     ch.my_port = r->my_port;
     ch.conn = http->conn;
     ch.request = r;
+    xstrncpy(ch.rfc931, http->conn->rfc931, USER_IDENT_SZ);
     if (r->client_addr.s_addr == INADDR_BROADCAST) {
 	debug(77, 2) ("delayClient: WARNING: Called with 'allones' address, ignoring\n");
 	return delayId(0, 0);

On Thu, 13 Oct 2005, Oleg Sharoiko wrote:

OS>
OS>On Thu, 13 Oct 2005, Oleg Sharoiko wrote:
OS>
OS>OS>2.5STABLE2
OS>OS>I'll update it to latest stable today and see if it helps.
OS>
OS>It doesn't work with 2.5.STABLE11 either. The same results in debug 
OS>(http_access sees ident response, delay_access doesn't). Any suggestions 
OS>on how to debug this further are welcome.
OS>
OS>2005/10/13 07:59:28| aclCheck: checking 'http_access allow sunray2 user01'
OS>2005/10/13 07:59:28| aclMatchAclList: checking sunray2
OS>2005/10/13 07:59:28| aclMatchAcl: checking 'acl sunray2 src 195.208.251.171'
OS>2005/10/13 07:59:28| aclMatchIp: '195.208.251.171' found
OS>2005/10/13 07:59:28| aclMatchAclList: checking user01
OS>2005/10/13 07:59:28| aclMatchAcl: checking 'acl user01 ident user01'
OS>2005/10/13 07:59:28| aclMatchUser: user is user01, case_insensitive is 0
OS>2005/10/13 07:59:28| Top is 0x81fb8c0, Top->data is user01
OS>2005/10/13 07:59:28| aclMatchUser: returning 1,Top is 0x81fb8c0, Top->data is user01
OS>2005/10/13 07:59:28| aclMatchAclList: returning 1
OS>2005/10/13 07:59:28| aclCheck: match found, returning 1
OS>2005/10/13 07:59:28| aclCheckCallback: answer=1
OS>
OS>2005/10/13 07:59:28| aclCheckFast: list: 0x82397f0
OS>2005/10/13 07:59:28| aclMatchAclList: checking sunray2
OS>2005/10/13 07:59:28| aclMatchAcl: checking 'acl sunray2 src 195.208.251.171'
OS>2005/10/13 07:59:28| aclMatchIp: '195.208.251.171' found
OS>2005/10/13 07:59:28| aclMatchAclList: checking user01
OS>2005/10/13 07:59:28| aclMatchAcl: checking 'acl user01 ident user01'
OS>2005/10/13 07:59:28| aclMatchAclList: no match, returning 0
OS>2005/10/13 07:59:28| aclCheckFast: no matches, returning: 0
OS>
OS>

-- 
Oleg Sharoiko.
Software and Network Engineer
Computer Center of Rostov State University.

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux