-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Giovanni P. Tirloni wrote:
> 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?

Run python with '-u' (unbuffered stdin / stdout).


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDJuwb+gerLs4ltQ4RAkSrAKCTrsvClSYIa4tVzaMsT+Mg1cePqgCfVLe1
8Nl+ruLq+pVixI97vWHmlK4=
=SfMC
-----END PGP SIGNATURE-----

Reply via email to