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 {
24
		notfound = 1
25
	}
26
	if (notfound) {
27
		update reply {
28
			Reply-Message := "Username not found"
29
		}
30
		reject
31
	}
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
2615 tom.houday 101
 
2467 richard 102
	ldap {
103
		fail = 1
104
	}
105
	if ((ok || updated) && User-Password) {
106
		update control {
107
			Auth-Type := ldap
108
		}
109
	}
110
}
111
 
112
authenticate {
113
	Auth-Type PAP {
114
		pap
115
	}
116
	Auth-Type LDAP { 
117
		ldap 
118
    }
119
}
120
 
121
accounting {
122
	sql
123
}
124
 
125
session {
126
	sql
127
}
128
 
129
post-auth {
130
	Post-Auth-Type REJECT {
2615 tom.houday 131
		update reply {
132
			Reply-Message = "Login failed"
133
		}
2467 richard 134
		attr_filter.access_reject
135
	}
136
}
137
}