Subversion Repositories ALCASAR

Rev

Rev 2701 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
2467 richard 1
server default {
2
listen {
3
	type = auth
4
	ipaddr = *
5
	port = 0
6
	limit {
7
		max_connections = 16
8
		lifetime = 0
9
		idle_timeout = 30
10
	}
11
}
12
 
13
listen {
14
	type = acct
15
	ipaddr = *
16
	port = 0
17
	limit {
18
		max_pps = 0
19
	}
20
}
21
 
22
authorize {
2701 tom.houday 23
	sql { notfound = 1 }
2615 tom.houday 24
	if (notfound) {
2591 rexy 25
		update reply {
26
			Reply-Message := "Username not found"
27
		}
2615 tom.houday 28
		reject
2591 rexy 29
	}
2615 tom.houday 30
 
31
	expire_on_login { reject = 1 }
32
	if (reject) {
33
		update reply {
34
			Reply-Message := "Your usage time has been reached"
35
		}
36
		reject
37
	}
38
	noresetcounter { reject = 1 }
39
	if (reject) {
40
		update reply {
41
			Reply-Message := "Your maximum usage time has been reached"
42
		}
43
		reject
44
	}
45
	monthlycounter { reject = 1 }
46
	if (reject) {
47
		update reply {
48
			Reply-Message := "Your maximum monthly usage time has been reached"
49
		}
50
		reject
51
	}
52
	dailycounter { reject = 1 }
53
	if (reject) {
54
		update reply {
55
			Reply-Message := "Your maximum daily usage time has been reached"
56
		}
57
		reject
58
	}
59
 
2618 tom.houday 60
	counterCoovaChilliMaxAllTotalOctets { reject = 1 }
61
	if (reject) {
62
		update reply {
63
			Reply-Message := "Your maximum usage volume has been reached"
64
		}
65
		reject
66
	}
2615 tom.houday 67
	counterCoovaChilliMaxTotalOctetsMonthly { reject = 1 }
68
	if (reject) {
69
		update reply {
70
			Reply-Message := "Your maximum monthly usage volume has been reached"
71
		}
72
		reject
73
	}
74
	counterCoovaChilliMaxTotalOctetsDaily { reject = 1 }
75
	if (reject) {
76
		update reply {
77
			Reply-Message := "Your maximum daily usage volume has been reached"
78
		}
79
		reject
80
	}
81
 
82
	expiration { userlock = 1 }
83
	if (userlock) {
84
		update reply {
85
			Reply-Message := "Your expiration date has been reached"
86
		}
87
		userlock
88
	}
89
 
90
	logintime { userlock = 1 }
91
	if (userlock) {
92
		update reply {
2882 rexy 93
			Reply-Message := "You are out your allowed time period"
2615 tom.houday 94
		}
95
		userlock
96
	}
97
 
2467 richard 98
	pap
99
}
100
 
101
authenticate {
102
	Auth-Type PAP {
103
		pap
104
	}
105
}
106
 
107
accounting {
108
	sql
109
}
110
 
111
session {
112
	sql
113
}
114
 
115
post-auth {
116
	Post-Auth-Type REJECT {
2615 tom.houday 117
		update reply {
118
			Reply-Message = "Login failed"
119
		}
2467 richard 120
		attr_filter.access_reject
121
	}
122
}
123
}