[squid-users] Helper doent authentify

Edwin Quijada listas_quijada at hotmail.com
Mon Dec 11 21:19:53 UTC 2017


Hi!
I am trying to do a helper for use with Squid. I did my helper but it doesnt authentify

<?php

$f = fopen("php://stdin", "r");
while (!(feof($f)))
{
    $line = fgets($f);
    if ($line)
     {
        $fields = explode(' ', trim($line));
        $username = rawurldecode($fields[0]);
        $password = rawurldecode($fields[1]);

        if ($username=="edwin" &&  $password=="1234")
         fwrite(STDOUT, "OK\n");
        else
         fwrite(STDOUT, "ERR\n");
    }
}
?>

when I put the values it continues asked me user/password


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20171211/502d09e6/attachment.html>


More information about the squid-users mailing list