Creating a Custom Authenticator

From: Mahesh Govindappa <>
Date: Wed, 23 May 2007 14:10:36 +0300

Hello Everyone

I am new to Squid and Development.
but i have sufficient Knowledge to Configure Squid and understand the
architecture of the same.

i am trying to create a custom authenticator for Squid.
as the builtin authenticator programs do not solve my problem .

1.My requirement is to allow a user with in a day a specified amount
of time to browse, it can be any time within that day.
2. or Based on download and upload the user done, like we can specify
datasize Quota for a user.

i wrote a simple program just for checking purpose.

#include <stdio.h>
#include <string.h>

int main()
char buf[8192];
fgets(buf, 256, stdin);
FILE *fp;
fp=fopen("/etc/test.txt", "w");
fprintf(fp,"%s", buf);

made it executable and run it and specified

auth_param basic program path/myprogram

This is to Check what does Squid Give to me and write it to a File.
and Send OK for every request to Squid.
But Squid Keeps on asking username and password and nothing is written
in the file /etc/test.txt.
can u please explain what is the problem and how can it be solved.
i actually wanted to be a active member of the squid with my active
partition of development and ideas, but as i am a starter just 1 month
new to Squid.

Best regards,
Mahesh G
Received on Wed May 23 2007 - 05:10:39 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Jun 01 2007 - 12:00:09 MDT