Subversion Repositories ALCASAR

Rev

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

Rev 2513 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
-
 
25
	}
-
 
26
	if (notfound) {
-
 
27
		update reply {
-
 
28
			Reply-Message := "Username not found"
-
 
29
		}
-
 
30
		reject
-
 
31
	}
-
 
32
 
24
	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
	}
25
	noresetcounter
40
	noresetcounter { reject = 1 }
26
	dailycounter
41
	if (reject) {
-
 
42
		update reply {
-
 
43
			Reply-Message := "Your maximum usage time has been reached"
-
 
44
		}
-
 
45
		reject
-
 
46
	}
27
	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 }
28
	expiration
55
	if (reject) {
-
 
56
		update reply {
-
 
57
			Reply-Message := "Your maximum daily usage time has been reached"
-
 
58
		}
-
 
59
		reject
-
 
60
	}
-
 
61
 
29
	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
	}
30
	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
		}
31
	logintime
90
		userlock
-
 
91
	}
-
 
92
 
32
	pap
93
	pap
-
 
94
 
33
	ldap {
95
	ldap {
34
		fail = 1
96
		fail = 1
35
	}
97
	}
36
	if ((ok || updated) && User-Password) {
98
	if ((ok || updated) && User-Password) {
37
		update control {
99
		update control {
Line 57... Line 119...
57
	sql
119
	sql
58
}
120
}
59
 
121
 
60
post-auth {
122
post-auth {
61
	Post-Auth-Type REJECT {
123
	Post-Auth-Type REJECT {
-
 
124
		update reply {
-
 
125
			Reply-Message = "Login failed"
-
 
126
		}
62
		attr_filter.access_reject
127
		attr_filter.access_reject
63
	}
128
	}
64
}
129
}
65
}
130
}