On Tuesday 24 June 2003 02.01, Justin Smith wrote:
> Where might I find modules like this, or barring that, a decent
> reference to write one?
Squid auth helpers are just plain stdio programs, reading lines of
input from stdin and for each line responding with OK/ERR to stdout.
Input format to basic auth helpers is
login<space>password<newline>
both login and password is URL escaped (%nn syntax)
If the login is correct then the auth helper should respond with the
string OK<newline>
If there is some problem, the helper should respons with the string
ERR<newline>
In most languages you need to disable stdio output buffering. In C
this is done with "setbuf(stdout, NULL);", in perl by "$|=0;". Other
languages vary.
You can easily verify the above by running the ncsa_auth helper by
hand.
Note: Squid also ships with a LDAP and NT-Domain helpers plus a few
other (probably not interesting in an NT environment). There is also
a Radius helper available on the Internet but I am not sure if this
can be built in NT or how well it works.
-- Donations welcome if you consider my Free Squid support helpful. https://www.paypal.com/xclick/business=hno%40squid-cache.org If you need commercial Squid support or cost effective Squid or firewall appliances please refer to MARA Systems AB, Sweden http://www.marasystems.com/, info@marasystems.comReceived on Mon Jun 23 2003 - 19:31:02 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:17:35 MST