external_acl_helper - something wrong...

From: Hegedus Ervin <airween@dont-contact.us>
Date: Sat, 21 Aug 2004 20:49:19 +0200

hello,

i'm looking the external acl scheme - i trying to make a simple
external helper, but i stuck in it...

here is the part of code:

        while (1) {
                syslog(LOG_WARNING, "waiting datas...");
                fgets(input, sizeof(input), stdin);
                if ((cp = strchr(input, '\n')) != NULL) {
                        *cp = '\0';
                }
                syslog (LOG_WARNING, "getting info: %s", input);
                p1 = NULL;
                p2 = NULL;
                if ((cp = strtok(input, " \t")) != NULL) {
                        p1 = cp;
                        p2 = strtok(NULL, " \t");
                }
                syslog(LOG_WARNING, "get: %s %s\n", p1, p2);
                printf("OK\n");
                syslog(LOG_WARNING, "sending OK...");
        }

(to see, how works my program, i send their messages through
syslog)

here is the relevant part of squid.conf:

====
external_acl_type SRC_IP %LOGIN %SRC /usr/local/squid/libexec/test_helper

acl srcip external SRC_IP
acl password proxy_auth REQUIRED

http_access allow password srcip
====

but, when i try to use it, i get these lines (after when i
authorized myself):

syslog:
...(test_helper): getting info: airween 192.168.0.2
...(test_helper): get: airween 192.168.0.2
...(test_helper): sending OK...
...(test_helper): waiting datas...

and nothing else.

here is the squid log part (tail -f cache.log | grep external)

2004/08/21 20:46:16| aclMatchAcl: checking 'acl srcip external SRC_IP'
2004/08/21 20:46:16| externalAclLookup: lookup in 'SRC_IP' for 'airween 192.168.0.2'

and then nothing to happen....

what's wrong?

thank you:

airween
Received on Sat Aug 21 2004 - 12:49:08 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:04 MDT