]> git.ipfire.org Git - thirdparty/squid.git/commit
squidclient: send cachemgr password via -w option
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 17 Feb 2011 14:57:33 +0000 (03:57 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 17 Feb 2011 14:57:33 +0000 (03:57 +1300)
commit3f3e5473fe62668ba3f5284339ff955fbe69a775
treef4bf08d200e43639f36ff727e298704aee36c368
parentd440ba10fecfad3b5672e8cd20709a0aa510c293
squidclient: send cachemgr password via -w option

Preparation for internal cachemgr updates to use real proxy-auth.

The cachamgr password may now be sent in three ways:
  Deprecated:      mgr:info@password
  Current Option:  -w password mgr:info
  Preferred:       -u username -w password mgr:info

The old explicit @ syntax is now deprecated for visible use. The background
systems will still send it that way for cache_object: URLs. Use of this
overrides any -w option set. So it is still possible to login to a proxy
with one set of credentials and pass a separate password to the cachemgr.
The long-term plan is to drop @ completely in future.

The current option of just -w will convert the password to @ syntax in the
background but not add Proxy-Authentication headers. This may die in future.

The preferred alternative is to use -u and -w which triggers addition of real
Proxy-Authenticate headers. The username is not yet used by cachemgr but
may be required by the proxy ACL configuration.
tools/squidclient.cc