/[smeserver]/rpms/e-smith-manager/sme9/e-smith-manager-2.6.0-bz10186-timeout.patch
ViewVC logotype

Annotation of /rpms/e-smith-manager/sme9/e-smith-manager-2.6.0-bz10186-timeout.patch

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


Revision 1.1 - (hide annotations) (download)
Sun Mar 26 03:34:56 2017 UTC (7 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: e-smith-manager-2_6_0-23_el6_sme, e-smith-manager-2_6_0-22_el6_sme, e-smith-manager-2_6_0-21_el6_sme, e-smith-manager-2_6_0-24_el6_sme, e-smith-manager-2_6_0-17_el6_sme, e-smith-manager-2_6_0-20_el6_sme, e-smith-manager-2_6_0-25_el6_sme, e-smith-manager-2_6_0-16_el6_sme, e-smith-manager-2_6_0-19_el6_sme, e-smith-manager-2_6_0-18_el6_sme, HEAD
* Sat Mar 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-16.sme
- fix too short timeout in server-manager [SME: 10186]
- now 30 min as default instead of 5
- possibility to change this and adapt the default 0.66 of timeout remaining to reset it
- by default only a session cookie, can activate persistent cookie
- sha256 as encryption.

1 unnilennium 1.1 --- e-smith-manager-2.8.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/20ManagerAuthTKT 2007-01-27 02:51:30.000000000 +0100
2     +++ e-smith-manager-2.8.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/20ManagerAuthTKT 2017-03-01 05:32:48.000000000 +0100
3     @@ -3,4 +3,5 @@
4    
5     my $secret = ${'httpd-admin'}{TKTAuthSecret} || "34322500-7330-4400-423A-3A00434F5245";
6     $OUT .= "TKTAuthSecret \"$secret\"\n";
7     + $OUT .= "TKTAuthDigestType SHA256\n";
8     }
9     --- e-smith-manager-2.8.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15common 2017-01-23 17:52:35.000000000 +0100
10     +++ e-smith-manager-2.8.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess15common 2017-03-26 05:02:57.000000000 +0200
11     @@ -32,8 +32,15 @@
12     AuthType basic
13    
14     TKTAuthLoginURL /server-common/cgi-bin/login
15     - TKTAuthTimeout 5m
16     - TKTAuthCookieExpires 5m
17     +{
18     + my $ManagerTimeout = ${'httpd-admin'}{ManagerTimeout} || "30m";
19     + $OUT = " TKTAuthTimeout $ManagerTimeout\n";
20     + my $Cookie = ${'httpd-admin'}{Cookie} || "disabled";
21     + $OUT .= " TKTAuthCookieExpires $ManagerTimeout\n" if "$Cookie" eq "enabled";
22     + my $ManagerTimeoutReset = ${'httpd-admin'}{ManagerTimeoutReset} || "0.66";
23     + $OUT .= " TKTAuthTimeoutRefresh $ManagerTimeoutReset\n";
24     +}
25     + TKTAuthUnauthURL /server-common/cgi-bin/logout
26     require valid-user
27     Satisfy all
28     </Directory>
29     --- e-smith-manager-2.8.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20manager 2017-03-01 03:38:10.000000000 +0100
30     +++ e-smith-manager-2.8.0/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess20manager 2017-03-26 05:03:08.000000000 +0200
31     @@ -11,9 +11,13 @@
32     allow from { $localAccess }
33     AuthType Basic
34     TKTAuthLoginURL /server-common/cgi-bin/login
35     - TKTAuthTimeout 5m
36     - TKTAuthCookieExpires 5m
37     -
38     +{
39     + my $ManagerTimeout = ${'httpd-admin'}{ManagerTimeout} || "30m";
40     + $OUT = " TKTAuthTimeout $ManagerTimeout\n";
41     +# $OUT .= " TKTAuthCookieExpires $ManagerTimeout";
42     +}
43     + TKTAuthTimeoutRefresh 0.66
44     + TKTAuthUnauthURL /server-common/cgi-bin/logout
45     require user admin
46     Satisfy all
47     </Directory>
48     @@ -26,9 +30,15 @@
49     allow from { $localAccess }
50     AuthType Basic
51     TKTAuthLoginURL /server-common/cgi-bin/login
52     - TKTAuthTimeout 5m
53     - TKTAuthCookieExpires 5m
54     -
55     +{
56     + my $ManagerTimeout = ${'httpd-admin'}{ManagerTimeout} || "30m";
57     + $OUT = " TKTAuthTimeout $ManagerTimeout\n";
58     + my $Cookie = ${'httpd-admin'}{Cookie} || "disabled";
59     + $OUT .= " TKTAuthCookieExpires $ManagerTimeout\n" if "$Cookie" eq "enabled";
60     + my $ManagerTimeoutReset = ${'httpd-admin'}{ManagerTimeoutReset} || "0.66";
61     + $OUT .= " TKTAuthTimeoutRefresh $ManagerTimeoutReset\n";
62     +}
63     + TKTAuthUnauthURL /server-common/cgi-bin/logout
64     require user admin
65     Satisfy all
66     </Directory>
67     --- e-smith-manager-2.8.0/root/etc/e-smith/templates/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg/manager_access 2017-01-23 17:52:35.000000000 +0100
68     +++ e-smith-manager-2.8.0/root/etc/e-smith/templates/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg/manager_access 2017-03-26 05:15:52.000000000 +0200
69     @@ -1,6 +1,9 @@
70     {
71     my $secret = ${'httpd-admin'}{TKTAuthSecret} || "34322500-7330-4400-423A-3A00434F5245";
72     + my $ManagerTimeout = ${'httpd-admin'}{ManagerTimeout} || "30m";
73     $OUT .= "TKTAuthSecret $secret\n";
74     - $OUT .= "TKTAuthTimeout 5m\n";
75     - $OUT .= "TKTAuthCookieExpires 5m";
76     + $OUT .= "TKTAuthTimeout $ManagerTimeout\n";
77     + my $Cookie = ${'httpd-admin'}{Cookie} || "disabled";
78     + $OUT .= "TKTAuthCookieExpires $ManagerTimeout\n" if "$Cookie" eq "enabled";
79     + $OUT .= "TKTAuthDigestType SHA256";
80     }

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