On Wed, 2003-08-20 at 10:46, Daniel Fone wrote: > Has anyone done any work writing a custom squid authentication scheme? The > requirement is a custom mysql query. My problem is largely with interfacing > with the (strange IMHO) squid auth method. > I have played with squid_pam_auth -> pam_mysql but the query is too limited. > I would also prefer to write it in C, owing to the nature of the environment > it will be in. Does anyone have any suggestions?
Use an external authenticator process, like smb_auth authenticate_program /usr/lib/squid/smb_auth -W AGHS /profgen/proxyauth acl domainusers proxy_auth REQUIRED http_access allow domainusers smb_auth is a script that tests a username and password somehow, then returns OKAY or FAILED (something like that) All you have to do is write a program that does the same - take username/password pairs as presented by squid, test it somehow and return Yea or Naye to squid.
