/[smecontribs]/rpms/smeserver-phpmyadmin/contribs10/smeserver-phpmyadmin-4.0.10.2-bz12343-private.patch
ViewVC logotype

Annotation of /rpms/smeserver-phpmyadmin/contribs10/smeserver-phpmyadmin-4.0.10.2-bz12343-private.patch

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


Revision 1.1 - (hide annotations) (download)
Wed Oct 25 19:47:08 2023 UTC (12 months, 1 week ago) by jpp
Branch: MAIN
CVS Tags: smeserver-phpmyadmin-4_0_10_2-14_el7_sme, HEAD
* Wed Oct 25 2023 Jean-Philippe Pialasse <tests@pialasse.com> 4.0.10.2-14.sme
- fix private access not respected for admin [SME: 12343]

1 jpp 1.1 diff -Nur --no-dereference smeserver-phpmyadmin-4.0.10.2.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpmyadminAlias smeserver-phpmyadmin-4.0.10.2/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpmyadminAlias
2     --- smeserver-phpmyadmin-4.0.10.2.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpmyadminAlias 2023-10-25 15:34:29.676000000 -0400
3     +++ smeserver-phpmyadmin-4.0.10.2/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpmyadminAlias 2023-10-25 15:40:33.273000000 -0400
4     @@ -29,14 +29,20 @@
5     $OUT .= "# phpMyAdmin Multiuser access disabled\n";
6     }
7    
8     -
9     + # Location overrides Directory for access control and default is RequireAny
10     + # we need to repeat the Require ip section for both context to filter both admin and multiuser access.
11     $OUT .= qq(
12     <Location /phpmyadmin>
13     AuthName "phpmyadmin"
14     AuthType Basic
15     AuthBasicProvider external
16     AuthExternal pwauth
17     - require user admin
18     + <RequireAll>
19     + require user admin
20     + );
21     + $OUT .= (($phpmyadmin{access} || 'private' ) eq "public" ) ? " Require all granted": " Require ip $localAccess $externalSSLAccess";
22     + $OUT .= qq(
23     + </RequireAll>
24     </Location>) if "$adminaccess" eq "enabled";
25    
26     $OUT .= qq(

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