Subversion Repositories ALCASAR

Rev

Rev 2615 | 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 {
2615 tom.houday 23
	sql {
2591 rexy 24
		notfound = 1
25
	}
2615 tom.houday 26
	if (notfound) {
2591 rexy 27
		update reply {
28
			Reply-Message := "Username not found"
29
		}
2615 tom.houday 30
		reject
2591 rexy 31
	}
2615 tom.houday 32
 
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
	}
40
	noresetcounter { reject = 1 }
41
	if (reject) {
42
		update reply {
43
			Reply-Message := "Your maximum usage time has been reached"
44
		}
45
		reject
46
	}
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 }
55
	if (reject) {
56
		update reply {
57
			Reply-Message := "Your maximum daily usage time has been reached"
58
		}
59
		reject
60
	}
61
 
2618 tom.houday 62
	counterCoovaChilliMaxAllTotalOctets { reject = 1 }
63
	if (reject) {
64
		update reply {
65
			Reply-Message := "Your maximum usage volume has been reached"
66
		}
67
		reject
68
	}
2615 tom.houday 69
	counterCoovaChilliMaxTotalOctetsMonthly { reject = 1 }
70
	if (reject) {
71
		update reply {
72
			Reply-Message := "Your maximum monthly usage volume has been reached"
73
		}
74
		reject
75
	}
76
	counterCoovaChilliMaxTotalOctetsDaily { reject = 1 }
77
	if (reject) {
78
		update reply {
79
			Reply-Message := "Your maximum daily usage volume has been reached"
80
		}
81
		reject
82
	}
83
 
84
	expiration { userlock = 1 }
85
	if (userlock) {
86
		update reply {
87
			Reply-Message := "Your expiration date has been reached"
88
		}
89
		userlock
90
	}
91
 
92
	logintime { userlock = 1 }
93
	if (userlock) {
94
		update reply {
95
			Reply-Message := "Your are out your allowed time period"
96
		}
97
		userlock
98
	}
99
 
2467 richard 100
	pap
101
}
102
 
103
authenticate {
104
	Auth-Type PAP {
105
		pap
106
	}
107
}
108
 
109
accounting {
110
	sql
111
}
112
 
113
session {
114
	sql
115
}
116
 
117
post-auth {
118
	Post-Auth-Type REJECT {
2615 tom.houday 119
		update reply {
120
			Reply-Message = "Login failed"
121
		}
2467 richard 122
		attr_filter.access_reject
123
	}
124
}
125
}