Re: [squid-users] Problems with Authenticator Solved

From: Udo Pokojski <[email protected]>
Date: Thu, 21 Oct 2004 11:21:58 +0200

>
>>Yes it is asking and working.
>>I have tried this in my Cache server for authentication type and it is
>working
>>there.
>>
>>> Cache Access Denied.
>>> http://www.google.com/
>>>
>>
>>It seems your http_access rule is not allowing to access cache there.
>
>
>>
>>> auth_param basic program /usr/src/null_auth
>>
>>Are you having the authenticator in this location with executable permission
>>there?
>>Try on command line as,
>>/usr/src/null_auth
>>test test
>>OK
>>OK
>>......
>>
>
>On command line, the authenticator works.
>

The output of my authenticator seems to be buffered. I changed the source
to:

#include <stdio.h>

char buffer[256];

int main()
{

   while (fgets(buffer,256,stdin)!=NULL)
   {
       fprintf(stdout,"OK\n");
       fflush(stdout);
       fprintf(stderr,"OK\n");
   }
}

Now it works as expected.

Thanks,
   Udo Pokojski

________________________________________
http://www.epost.de - das Kommunikationsportal der Deutschen Post
Received on Thu Oct 21 2004 - 03:22:01 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Nov 01 2004 - 12:00:02 MST