1 |
diff -up smeserver-dansguardian-panel-2.11/root/etc/e-smith/templates/etc/squid/squid.conf/15AuthProgramLdap.x64sup smeserver-dansguardian-panel-2.11/root/etc/e-smith/templates/etc/squid/squid.conf/15AuthProgramLdap |
2 |
--- smeserver-dansguardian-panel-2.11/root/etc/e-smith/templates/etc/squid/squid.conf/15AuthProgramLdap.x64sup 2008-10-24 07:49:48.000000000 -0400 |
3 |
+++ smeserver-dansguardian-panel-2.11/root/etc/e-smith/templates/etc/squid/squid.conf/15AuthProgramLdap 2013-09-25 12:01:49.000000000 -0400 |
4 |
@@ -3,11 +3,18 @@ return "" unless ( ($squid{RequireAuth} |
5 |
|
6 |
my $dn = $squid{dn} || "dc=232,dc=net"; |
7 |
my $host = $squid{host} || "k8.232.net"; |
8 |
+my usrpath='/usr/lib'; |
9 |
+ |
10 |
+if [ -d "/usr/lib64/squid/squid_ldap_auth" ] |
11 |
+then |
12 |
+usrpath='/usr/lib64'; |
13 |
+fi |
14 |
+ |
15 |
|
16 |
$OUT .= " |
17 |
-auth_param basic program /usr/lib/squid/squid_ldap_auth -b $dn -f uid=%s -h $host |
18 |
+auth_param basic program $usrpath/squid/squid_ldap_auth -b $dn -f uid=%s -h $host |
19 |
auth_param basic children 5 |
20 |
auth_param basic realm squid proxy server |
21 |
auth_param basic credentialsttl 2 hours |
22 |
auth_param basic casesensitive off |
23 |
-";} |
24 |
\ Pas de fin de ligne à la fin du fichier. |
25 |
+";} |