]> git.ipfire.org Git - thirdparty/squid.git/commit - src/errorpage.cc
Bug 2870: --disable-auth does not work
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 7 Feb 2011 10:27:53 +0000 (03:27 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 7 Feb 2011 10:27:53 +0000 (03:27 -0700)
commit2f1431eab290a090f81695dcbe97821693992f55
tree038302bb59de85d8f6d9957bf4f5437eb20b6a6a
parentf9acc8021a62fce28f7c74209857383a7f07cd5f
Bug 2870: --disable-auth does not work

This patch attempts to make it work by removing libauth.la and all component
functionality which depends on it. So far this reduces the minimal squid
binary by a further 900 KB on disk.

It also means anything which requires an authentication process wont work.
They get wrapped in USE_AUTH or if its a specific type with the relevant
HAVE_AUTH_MODULE_* wrappers.

So far this does:
 * FTP and CacheMgr dependency on --disable-auth-basic is already committed
 * cache_peer login= functionality is greatly reduced under various
   combinations of --disable-auth, --disable-auth-basic and
   --disable-auth-negotiate
 * peering userhash algorithm is removed
 * delay pools class 4 is removed
 * ACLs testing username are dropped.

Additionally since external ACL user= field is used interchangeably in
several places with a full login and with the right helper can be
considered a full side-band authentication I have disabled the
ExtUser/ext_user components as well.

NP: pinning is not strictly dependent on NTLM, we may use it for other
    things without involving auth so left most of it in. Just the logics
    which use auth to set the pinning flag are now removable.

IDENT not being an authentication mechanism is also left in.
46 files changed:
configure.ac
src/AclRegs.cc
src/AuthReg.cc
src/ExternalACLEntry.cc
src/ExternalACLEntry.h
src/HttpRequest.cc
src/HttpRequest.h
src/Makefile.am
src/acl/ExtUser.cc
src/acl/ExtUser.h
src/acl/FilledChecklist.cc
src/acl/FilledChecklist.h
src/auth/Acl.h
src/auth/AclMaxUserIp.h
src/auth/AclProxyAuth.h
src/auth/AuthAclState.h
src/auth/AuthType.h
src/auth/Config.h
src/auth/Gadgets.h
src/auth/Scheme.h
src/auth/State.h
src/auth/User.h
src/auth/UserRequest.h
src/cache_cf.cc
src/cf.data.pre
src/client_side.cc
src/client_side.h
src/client_side_reply.cc
src/client_side_reply.h
src/client_side_request.cc
src/errorpage.cc
src/errorpage.h
src/external_acl.cc
src/http.cc
src/main.cc
src/neighbors.cc
src/peer_select.cc
src/peer_userhash.cc
src/protos.h
src/redirect.cc
src/stat.cc
src/structs.h
src/tests/testACLMaxUserIP.cc
src/tests/testACLMaxUserIP.h
src/tests/testAuth.cc
src/tests/testAuth.h