]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 3345: Support %un (any available user name) format code for external ACLs.
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 25 Jul 2015 16:25:42 +0000 (09:25 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 25 Jul 2015 16:25:42 +0000 (09:25 -0700)
commit53b71c72f41379c8236461f544e5cf097c5390c4
tree16531ea0506fb43fcd392b01472f024623f73b26
parent953bb8a9e2590b1a05bbbbec5b7c40fa49f9e745
Bug 3345: Support %un (any available user name) format code for external ACLs.

The same %un code, with the same meaning is already supported in access.log.
In an external ACL request, it expands to the first available user name
from the following list of information sources:

  - authenticated user name, like %ul or %LOGIN
  - user name supplied by an external ACL to Squid via the "user=..."
    key=value pair, like %ue or %EXT_USER
  - SSL client name, like %us
  - ident user name, like %ui

Based on Amos Jeffries 2011 patch and "arronax28" design:
http://www.squid-cache.org/mail-archive/squid-dev/201112/0080.html
with TODO completion by Measurement Factory
src/cf.data.pre
src/external_acl.cc