]> git.ipfire.org Git - thirdparty/squid.git/commit - src/cf.data.pre
Support %un (any available user name) format code for external ACLs.
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Jul 2015 18:09:23 +0000 (11:09 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Jul 2015 18:09:23 +0000 (11:09 -0700)
commit50b5c98347c07ffd55faf6a3abb09479e491db1c
tree23346d64f0c6d800c69916f1b0cd7abf172f7d2a
parent13d8c08c34b891c90c5f2fef2661cf49869b68e2
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