/[smecontribs]/rpms/smeserver-roundcube/contribs10/smeserver-roundcube-1.2-bz12059-24syntax.patch
ViewVC logotype

Contents of /rpms/smeserver-roundcube/contribs10/smeserver-roundcube-1.2-bz12059-24syntax.patch

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


Revision 1.1 - (show annotations) (download)
Tue Aug 2 02:12:25 2022 UTC (2 years, 4 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-roundcube-1_2-20_el7_sme, smeserver-roundcube-1_2-23_el7_sme, smeserver-roundcube-1_2-17_el7_sme, smeserver-roundcube-1_2-24_el7_sme, smeserver-roundcube-1_2-19_el7_sme, smeserver-roundcube-1_2-14_el7_sme, smeserver-roundcube-1_2-18_el7_sme, smeserver-roundcube-1_2-12_el7_sme, smeserver-roundcube-1_2-22_el7_sme, smeserver-roundcube-1_2-21_el7_sme, smeserver-roundcube-1_2-15_el7_sme, smeserver-roundcube-1_2-16_el7_sme, smeserver-roundcube-1_2-13_el7_sme, HEAD
* Mon Aug 01 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.2-12.sme
- update to httpd 2.4 access syntax [SME: 12059]

1 diff -urN smeserver-roundcube-1.2.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92roundcube smeserver-roundcube-1.2/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92roundcube
2 --- smeserver-roundcube-1.2.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92roundcube 2022-07-22 22:29:59.137742906 +0300
3 +++ smeserver-roundcube-1.2/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92roundcube 2022-07-22 22:34:58.294244550 +0300
4 @@ -4,7 +4,7 @@
5 unless $status eq 'enabled';
6
7 $OUT = "";
8 - my $allow = 'all';
9 + my $allow = 'all granted';
10 my $pass = '0';
11 my $satisfy = 'all';
12 my $name = $roundcube{'Name'} || 'RoundCube IMAP Client';
13 @@ -19,31 +19,31 @@
14 }
15 elsif ($roundcube{'PublicAccess'} eq 'local')
16 {
17 - $allow = $localAccess;
18 + $allow = "ip $localAccess";
19 $pass = 0;
20 $satisfy = 'all';
21 }
22 elsif ($roundcube{'PublicAccess'} eq 'local-pw')
23 {
24 - $allow = $localAccess;
25 + $allow = "ip $localAccess";
26 $pass = 1;
27 $satisfy = 'all';
28 }
29 elsif ($roundcube{'PublicAccess'} eq 'global')
30 {
31 - $allow = 'all';
32 + $allow = 'all granted';
33 $pass = 0;
34 $satisfy = 'all';
35 }
36 elsif ($roundcube{'PublicAccess'} eq 'global-pw')
37 {
38 - $allow = 'all';
39 + $allow = 'all granted';
40 $pass = 1;
41 $satisfy = 'all';
42 }
43 elsif ($roundcube{'PublicAccess'} eq 'global-pw-remote')
44 {
45 - $allow = $localAccess;
46 + $allow = "ip $localAccess";
47 $pass = 1;
48 $satisfy = 'any';
49 }
50 @@ -63,9 +63,7 @@
51
52 $OUT .= "\n";
53 $OUT .= "<Directory /usr/share/roundcubemail>\n";
54 - $OUT .= " order deny,allow\n";
55 - $OUT .= " deny from all\n";
56 - $OUT .= " allow from $allow\n";
57 + $OUT .= " Require $allow\n";
58
59 if ($pass)
60 {
61 @@ -86,8 +84,7 @@
62
63 $OUT .= qq (
64 <Directory /usr/share/roundcubemail/installer/>
65 - Order Deny,Allow
66 - Deny from All
67 + Require all denied
68 </Directory>
69 );
70

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