Search squid archive

Re: auto blacklist users

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

 



Okay I have something that seems to work.

Can I have a quick review, then I'll leave you in peace.

This may wrap.

--- src/client_side.c.orig      Mon Sep  3 14:13:36 2007
+++ src/client_side.c   Sat Dec  8 15:42:34 2007
@@ -425,6 +425,11 @@
        clientRedirectStart(http);
     } else {
        int require_auth = (answer == ACCESS_REQ_PROXY_AUTH || aclIsProxyAuth(AclMatchedName)) && !http->request->flags.transparent;
+/*ijh*/
+debug(33,1) ("SOMESTRING %s %s %s\n",
+               AclMatchedName ? AclMatchedName : "<null>",
+               http->request->auth_user_request ? authenticateUserRequestUsername(http->request->auth_user_request) : "<null>",
+               http->uri);
        debug(33, 5) ("Access Denied: %s\n", http->uri);
        debug(33, 5) ("AclMatchedName = %s\n",
            AclMatchedName ? AclMatchedName : "<null>");

Is it sane?
Is it safe (e.g. http->request never null).
Is the uri part okay and safe?

I assume I'll need to patch clientAccessCheckDone2 as well.

Are all code paths (for access denied) covered?

Thanks again for all replies

-- 
ian j hart

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

  Powered by Linux