/[smecontribs]/rpms/smeserver-coova-chilli/contribs7/smeserver-coova-chilli-0.2-guest_access2.patch
ViewVC logotype

Annotation of /rpms/smeserver-coova-chilli/contribs7/smeserver-coova-chilli-0.2-guest_access2.patch

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


Revision 1.1 - (hide annotations) (download)
Fri Sep 5 10:36:55 2008 UTC (16 years, 1 month ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-coova-chilli-0_2-3_el4_sme, smeserver-coova-chilli-0_2-5_el4_sme, smeserver-coova-chilli-0_2-6_el4_sme
syntaxe error and radius timeout fixes

1 vip-ire 1.1 --- smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/raddb/users/40chilli.guest_access2 2008-09-05 12:26:24.000000000 +0200
2     +++ smeserver-coova-chilli-0.2/root/etc/e-smith/templates/etc/raddb/users/40chilli 2008-09-05 12:33:07.000000000 +0200
3     @@ -1,23 +1,23 @@
4     {
5    
6     -if ((($chilli{'status'} || 'disabled) eq 'enabled') &&
7     - ($chilli{'guestAccess'} || disabled) eq 'enabled'){
8     - my $downlink = $chilli{'guestDownLink'} || '400';
9     - my $uplink = $chilli{'guestUpLink'} || '64';
10     - $downlink = $downlink * 1000;
11     - $uplink = $uplink * 1000;
12     - $OUT =<<END;
13     +if ((($chilli{'status'} || 'disabled') eq 'enabled') &&
14     + ($chilli{'guestAccess'} || 'disabled') eq 'enabled'){
15     + my $downlink = $chilli{'guestDownLink'} || '400';
16     + my $uplink = $chilli{'guestUpLink'} || '64';
17     + $downlink = $downlink * 1000;
18     + $uplink = $uplink * 1000;
19     + $OUT =<<"END";
20    
21     -guest NAS-Identify == "chilli", Auth-Type: = Local User-Password == 'guest'
22     +guest NAS-Identifier == "chilli", Auth-Type := Local, User-Password == 'guest'
23     WISPr-Bandwidth-Max-Down = $downlink, WISPr-Bandwidth-Max-Up = $uplink
24     -
25     END
26     +}
27    
28     if (($chilli{'status'} || 'disabled') eq 'enabled'){
29     - $OUT =<<END;
30     + $OUT .=<<END;
31    
32     DEFAULT Group == "chilli", NAS-Identifier == "chilli", Auth-Type := unix
33     -# WISPr-Bandwidth-Max-Down = 512000, WISPr-Bandwidth-Max-Up = 128000
34     +# WISPr-Bandwidth-Max-Down = 512000, WISPr-Bandwidth-Max-Up = 128000
35    
36     DEFAULT Group != "chilli", NAS-Identifier == "chilli", Auth-Type := Reject
37     Reply-Message = "Your are not member of the allowed group"
38     @@ -26,3 +26,4 @@
39     }
40     }
41    
42     +

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