[squid-users] how to realize (external_acl_type) logout without squid -k reconfigure

johnzeng johnzeng2013 at yahoo.com
Fri Apr 17 15:06:20 UTC 2015




Hello Dear Sir :






 We tested external_acl_type for web authentication via writing check.php ,

and login feature is fine

squid config is

external_acl_type session ipv4 concurrency=10 ttl=3600 negative_ttl=0
cache=1048576 %SRC /opt/check.php

check.php ( for login) is

fwrite(STDOUT, $stream_id." OK\n");


But if we don't squid -k reconfigure , logout feature is bad for me how
to update Ok or ERR cache entry without squid -k reconfigure

check.php ( for logout ) is

fwrite(STDOUT, $stream_id." ERR\n");



if possible , please give me some advisement



$stream_line = trim(fgets(STDIN));
$stream_array = split("[ ]+", $stream_line);

if(isset($stream_array[1]))
{
$stream_ip = trim($stream_array[1]);
}

if(isset($stream_array[0]))
{
$stream_id = trim($stream_array[0]);
}
 





More information about the squid-users mailing list