Re: [squid-users] 2 different authenticate_program

From: Mike Diggins <diggins@dont-contact.us>
Date: Mon, 30 Jul 2001 09:02:57 -0400 (EDT)

I'm using this Perl script which I found in the Squid archives. It works
for us. Substitute your own authentication modules

#!/usr/bin/perl
use IPC::Open2;
open2(*read1,*write1,"/usr/local/squid/bin/smb_auth ...");
open2(*read2,*write2,"/usr/local/squid/bin/ncsa_auth ... ");
select write1;
$|=1;
select write2;
$|=1;
select STDOUT;
$|=1;
while(<>) {
  print write1 $_; $ans = <read1>;
  if ($ans =~ /^OK/) { print $ans; next; }
  print write2 $_; $ans = <read2>;
  if ($ans =~ /^OK/) { print $ans; next; }
  print $ans;
}

-Mike

On Mon, 30 Jul 2001 Markus.Forrer@coop.ch wrote:

> Hi all
>
> It's there a way to confirm the users with two different
> authenticate_programs??? like
>
> authenticate_program /usr/local/squid/bin/squid_ldap_auth
> ...................
> authenticate_program /usr/local/squid/bin/nsca
> ...............................
>
> Best thnx for any comment :)
>
> Markus Forrer
>
>
Received on Mon Jul 30 2001 - 07:03:20 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:20 MST