/[smecontribs]/rpms/smeserver-ocsinventory/contribs8/smeserver-ocsinventory-0.1-inventory_access.patch
ViewVC logotype

Contents of /rpms/smeserver-ocsinventory/contribs8/smeserver-ocsinventory-0.1-inventory_access.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri May 24 21:02:00 2013 UTC (11 years, 6 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-ocsinventory-0_1-11_el5_sme, smeserver-ocsinventory-0_1-14_el5_sme, smeserver-ocsinventory-0_1-12_el5_sme, smeserver-ocsinventory-0_1-13_el5_sme, HEAD
Initial import

1 --- smeserver-ocsinventory-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/97ocs.inventory_access 2009-06-18 20:25:10.000000000 +0200
2 +++ smeserver-ocsinventory-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/97ocs 2009-06-18 20:29:57.000000000 +0200
3 @@ -16,7 +16,13 @@
4 AllowOverride None
5 order deny,allow
6 deny from all
7 - allow from { $localAccess }
8 + {
9 + my $ocsia = $ocs{'InventoryAccess'} || "local";
10 + if ($ocsia eq "local")
11 + { $OUT .= " allow from $localAccess $externalSSLAccess"; }
12 + else
13 + { $OUT .= " allow from all"; }
14 + }
15 php_admin_value open_basedir /var/lib/ocsinventory-reports/download:/tmp
16 </Directory>
17
18 @@ -297,14 +303,14 @@
19 # Be careful, do not create such directory into your web server root document !
20 <Location /ocsinventory>
21 order deny,allow
22 -{
23 + deny from all
24 + {
25 my $ocsia = $ocs{'InventoryAccess'} || "local";
26 if ($ocsia eq "local")
27 { $OUT .= " allow from $localAccess"; }
28 else
29 { $OUT .= " allow from all"; }
30 -}
31 - Satisfy Any
32 + }
33 SetHandler perl-script
34 PerlHandler Apache::Ocsinventory
35 </Location>
36 @@ -314,14 +320,14 @@
37 SetHandler perl-script
38 perlHandler "Apache::Ocsinventory::SOAP"
39 order deny,allow
40 -{
41 + deny from all
42 + {
43 my $ocsia = $ocs{'InventoryAccess'} || "local";
44 if ($ocsia eq "local")
45 { $OUT .= " allow from $localAccess"; }
46 else
47 { $OUT .= " allow from all"; }
48 -}
49 - Satisfy any
50 + }
51 </location>
52 </IfModule>
53

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed