Authenticator in python makes Squid hang

From: Giovanni P. Tirloni <gpt@dont-contact.us>
Date: Tue, 13 Sep 2005 09:31:57 -0300

Hi,

  I created a small authenticator in Python that connects to a MySQL
database. It's working fine in the command line but when I ask Squid to
enforce the password it hangs.

  There are no log entries in access.log regarding the URL I asked. And
in cache.log I see the following:

2005/09/13 09:19:43| aclCheck: checking 'http_access allow password'
2005/09/13 09:19:43| aclMatchAclList: checking password
2005/09/13 09:19:43| aclMatchAcl: checking 'acl password proxy_auth
REQUIRED'
2005/09/13 09:19:43| aclMatchAclList: no match, returning 0
2005/09/13 09:19:43| aclCheck: checking password via authenticator

  Nothing else happens and I've to close Firefox, try another URL,
answer the user/password screen and it hangs again. See below the
authenticator on the command line:

# ./squid_mysql_auth.py
abc 123
ERR
test
ERR
bs2 123
OK
bs2 111
ERR
^C

  My code is available at http://tirloni.org/squid/squid_mysql_auth.py
(and md5crypt.py by Michal Wallace).

Any sugestion?

Thanks in advance,

-- 
Giovanni P. Tirloni / gpt@tirloni.org
Received on Tue Sep 13 2005 - 09:01:48 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Oct 01 2005 - 12:00:05 MDT