[squid-users] username from external_acl to url_rewrite_program

Andrew Lavrinenko lxlight at gmail.com
Thu Feb 4 14:15:27 UTC 2016


Thank you, Amos!
patch dont help because build error:
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H
-I../.. -I../../include -I../../lib -I../../src -I../../include
-I../../libltdl -I/usr/include/libxml2  -I/usr/include/libxml2 -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -pipe
-D_REENTRANT -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -c -o
Format.lo Format.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib
-I../../src -I../../include -I../../libltdl -I/usr/include/libxml2
-I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments
-Wshadow -Werror -pipe -D_REENTRANT -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -c Format.cc  -fPIC
-DPIC -o .libs/Format.o
Format.cc: In member function 'void Format::Format::assemble(MemBuf&, const
AccessLogEntry::Pointer&, int) const':
Format.cc:816: error: no match for 'operator&&' in '(out == 0u) && al'
Format.cc:816: note: candidates are: operator&&(bool, bool) <built-in>
Format.cc:816: error: 'class String' has no member named 'isEmpty'
cc1plus: warnings being treated as errors
Format.cc:817: error: declaration of 'tmp' shadows a previous local
Format.cc:315: error: shadowed declaration is here
make: *** [Format.lo] Error 1

I try to rewrite code like this:
..
if (!out && (al != NULL) && al->request && (al->request->extacl_user.size()
== 0)) {
..
code is compiled but squid behavior no changed, still dash instead username.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160204/d072bc0d/attachment.html>


More information about the squid-users mailing list