<p dir="ltr">Hello,</p>
<p dir="ltr">I think I'm having a problem with the url_rewrite_extras function. I'm using version 3.5.3. I've been trying to use the %ue macro to send the user= returned by my external_acl_type program. But when I look at the url_rewrite_program output I just get a "-" value for this macro.</p>
<p dir="ltr">Example:</p>
<p dir="ltr">Summarized config:</p>
<p dir="ltr">external_acl_type idbf_user ttl=30 %SRC /opt/idbf-dev/idbf_squid_ext_acl.py</p>
<p dir="ltr">acl idbf_allowed external idbf_user # authenticated users from external acl</p>
<p dir="ltr">http_access allow idbf_allowed<br>
http_access deny all</p>
<p dir="ltr">url_rewrite_access idbf_allowed<br>
url_rewrite_extras "un: %un ue: %ue ul: %ul ui: %ui"<br>
url_rewrite_program /usr/bin/tee -a /var/log/squid3/redir_tmp.log</p>
<p dir="ltr">redir_tmp.log:</p>
<p dir="ltr"><a href="http://www.ipchicken.com/">http://</a><a href="http://www.ipchicken.com/">www.ipchicken.com</a><a href="http://www.ipchicken.com/">/</a> un: - ue: - ul: - ui: -</p>
<p dir="ltr">But I do see my external acl user as excepted in access.log:</p>
<p dir="ltr">1432219189.592 40 172.20.15.235 TCP_MISS/404 509 GET<a href="http://www.ipchicken.com/"> http://</a><a href="http://www.ipchicken.com/">www.ipchicken.com</a><a href="http://www.ipchicken.com/">/</a><a href="mailto:user@example.com"> user@</a><a href="mailto:user@example.com">example.com</a> HIER_DIRECT/<a href="http://209.68.27.16">209.68.27.16</a> text/html</p>
<p dir="ltr">Does anyone see anything I might have mis-configured or am I just not understanding how this should work?</p>
<p dir="ltr">Thanks!</p>
<p dir="ltr">Patrick</p>