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 |
+ |