Subversion Repositories ALCASAR

Rev

Rev 2591 | Rev 2618 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2591 Rev 2615
Line 18... Line 18...
18
		max_pps = 0
18
		max_pps = 0
19
	}
19
	}
20
}
20
}
21
 
21
 
22
authorize {
22
authorize {
23
	sql{
23
	sql {
24
		notfound = 1
24
		notfound = 1
25
		reject = 2
-
 
26
	}
25
	}
27
	if(notfound){
26
	if (notfound) {
28
		update reply {
27
		update reply {
29
			Reply-Message := "Username not found"
28
			Reply-Message := "Username not found"
30
		}
29
		}
-
 
30
		reject
31
	}
31
	}
-
 
32
 
32
	expire_on_login
33
	expire_on_login { reject = 1 }
-
 
34
	if (reject) {
-
 
35
		update reply {
-
 
36
			Reply-Message := "Your usage time has been reached"
-
 
37
		}
-
 
38
		reject
-
 
39
	}
33
	noresetcounter
40
	noresetcounter { reject = 1 }
34
	dailycounter
41
	if (reject) {
-
 
42
		update reply {
-
 
43
			Reply-Message := "Your maximum usage time has been reached"
-
 
44
		}
-
 
45
		reject
-
 
46
	}
35
	monthlycounter
47
	monthlycounter { reject = 1 }
-
 
48
	if (reject) {
-
 
49
		update reply {
-
 
50
			Reply-Message := "Your maximum monthly usage time has been reached"
-
 
51
		}
-
 
52
		reject
-
 
53
	}
-
 
54
	dailycounter { reject = 1 }
36
	expiration
55
	if (reject) {
-
 
56
		update reply {
-
 
57
			Reply-Message := "Your maximum daily usage time has been reached"
-
 
58
		}
-
 
59
		reject
-
 
60
	}
-
 
61
 
37
	counterCoovaChilliMaxTotalOctetsDaily
62
	counterCoovaChilliMaxTotalOctetsMonthly { reject = 1 }
-
 
63
	if (reject) {
-
 
64
		update reply {
-
 
65
			Reply-Message := "Your maximum monthly usage volume has been reached"
-
 
66
		}
-
 
67
		reject
-
 
68
	}
38
	counterCoovaChilliMaxTotalOctetsMonthly
69
	counterCoovaChilliMaxTotalOctetsDaily { reject = 1 }
-
 
70
	if (reject) {
-
 
71
		update reply {
-
 
72
			Reply-Message := "Your maximum daily usage volume has been reached"
-
 
73
		}
-
 
74
		reject
-
 
75
	}
-
 
76
 
-
 
77
	expiration { userlock = 1 }
-
 
78
	if (userlock) {
-
 
79
		update reply {
-
 
80
			Reply-Message := "Your expiration date has been reached"
-
 
81
		}
-
 
82
		userlock
-
 
83
	}
-
 
84
 
-
 
85
	logintime { userlock = 1 }
-
 
86
	if (userlock) {
-
 
87
		update reply {
-
 
88
			Reply-Message := "Your are out your allowed time period"
-
 
89
		}
39
	logintime
90
		userlock
-
 
91
	}
-
 
92
 
40
	pap
93
	pap
41
}
94
}
42
 
95
 
43
authenticate {
96
authenticate {
44
	Auth-Type PAP {
97
	Auth-Type PAP {
Line 54... Line 107...
54
	sql
107
	sql
55
}
108
}
56
 
109
 
57
post-auth {
110
post-auth {
58
	Post-Auth-Type REJECT {
111
	Post-Auth-Type REJECT {
-
 
112
		update reply {
-
 
113
			Reply-Message = "Login failed"
-
 
114
		}
59
		attr_filter.access_reject
115
		attr_filter.access_reject
60
	}
116
	}
61
}
117
}
62
}
118
}