/[smeserver]/rpms/e-smith-ibays/sme10/e-smith-ibays-2.6.0-bz8150-SSLproperty2SSLRequireSSL.patch
ViewVC logotype

Diff of /rpms/e-smith-ibays/sme10/e-smith-ibays-2.6.0-bz8150-SSLproperty2SSLRequireSSL.patch

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

Revision 1.2 by jpp, Wed Mar 10 05:58:01 2021 UTC Revision 1.3 by jpp, Wed Mar 10 06:00:27 2021 UTC
# Line 111  diff -Nur --no-dereference e-smith-ibays Line 111  diff -Nur --no-dereference e-smith-ibays
111               );               );
112    
113               # Untaint $name before use in system()               # Untaint $name before use in system()
114    diff -Nur --no-dereference e-smith-ibays-2.6.0.old/root/etc/e-smith/db/accounts/migrate/20ibay-accounts e-smith-ibays-2.6.0/root/etc/e-smith/db/accounts/migrate/20ibay-accounts
115    --- e-smith-ibays-2.6.0.old/root/etc/e-smith/db/accounts/migrate/20ibay-accounts        2016-02-05 17:52:36.000000000 -0500
116    +++ e-smith-ibays-2.6.0/root/etc/e-smith/db/accounts/migrate/20ibay-accounts    2021-03-10 00:58:57.504000000 -0500
117    @@ -4,5 +4,15 @@
118             # SME9 introduced SSLRequireSSL with enabled/disabled.
119             # This replaces local customisation, so migrate 'on' to 'enabled'
120             $ibay->set_prop ('SSLRequireSSL', 'enabled') if (($ibay->prop ('SSLRequireSSL') || '') eq 'on');
121    +
122    +       # SME10 merge SSL property (setting to redirect to https) with SSLRequireSSL (setting to force SSL in a directory)
123    +       # while they have two different purpose, most admin will want to protect one directory with SSL and ease access to their
124    +       # client to gently redirect them to https, hence the merge.
125    +       my $SSL = $DB->get_prop_and_delete($ibay->key, 'SSL') || 'disabled';
126    +
127    +       # if SSL is enabled or SSLRequireSSL is enabled we want the new one enabled
128    +       # default remains empty for disabled for the moment
129    +       $ibay->set_prop('SSLRequireSSL','enabled')  if ($SSL eq 'enabled');
130    +
131         }
132     }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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