Subversion Repositories ALCASAR

Rev

Rev 2591 | Rev 2618 | 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
 
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
	}
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
		}
90
		userlock
91
	}
92
 
2467 richard 93
	pap
94
}
95
 
96
authenticate {
97
	Auth-Type PAP {
98
		pap
99
	}
100
}
101
 
102
accounting {
103
	sql
104
}
105
 
106
session {
107
	sql
108
}
109
 
110
post-auth {
111
	Post-Auth-Type REJECT {
2615 tom.houday 112
		update reply {
113
			Reply-Message = "Login failed"
114
		}
2467 richard 115
		attr_filter.access_reject
116
	}
117
}
118
}