<snip>
>> Heres my delemma. We have 2 different directory servers with 2
>> different base dn
>
> How is Squid supposed to know which directory to use?
>
> If this can be done by the login name then a simple wrapper around two
> instances of squid_ldap_auth can easily be set up. Search for open2
> in the squid-users archives.
<SNIP>
Ok I got the open script off the archives, but I'm not having to much luck.
Heres how I got it set up.
In my squid.conf
auth_param basic program /usr/lib/squid/open2
#!/usr/bin/perl
use IPC::Open2;
open2(*read1,*write1,"/usr/lib/squid/squid_ldap_auth -u cn -b
ou=people,dc=newberg,dc=k12,dc=or,dc=us -f (uid=%s) -h
ldap.newberg.k12.or.us");
open2(*read2,*write2,"/usr/lib/squid/squid_ldap_auth -u cn -b o=DIST -f
(cn=%s) -h 172.16.16.30");
while(<>) {
print write1 $_; $ans = <read1>;
if ($ans =~ /^OK/) { print $ans; next; }
print write2 $_; $ans = <read2>;
if ($ans =~ /^OK/) { print $ans; next; }
print $ans;
}
I set the perms to the script to be 755
I must have something wrong because its not working ;p
Am I calling this correctly in the squid.conf I just guess thatıs thatıs how
you do it. - Jamie
Received on Fri May 16 2003 - 11:53:08 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:16:42 MST