Subversion Repositories ALCASAR

Rev

Rev 2513 | Rev 2618 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2513 Rev 2615
1
server default {
1
server default {
2
listen {
2
listen {
3
	type = auth
3
	type = auth
4
	ipaddr = *
4
	ipaddr = *
5
	port = 0
5
	port = 0
6
	limit {
6
	limit {
7
		max_connections = 16
7
		max_connections = 16
8
		lifetime = 0
8
		lifetime = 0
9
		idle_timeout = 30
9
		idle_timeout = 30
10
	}
10
	}
11
}
11
}
12
 
12
 
13
listen {
13
listen {
14
	type = acct
14
	type = acct
15
	ipaddr = *
15
	ipaddr = *
16
	port = 0
16
	port = 0
17
	limit {
17
	limit {
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 {
38
			Auth-Type := ldap
100
			Auth-Type := ldap
39
		}
101
		}
40
	}
102
	}
41
}
103
}
42
 
104
 
43
authenticate {
105
authenticate {
44
	Auth-Type PAP {
106
	Auth-Type PAP {
45
		pap
107
		pap
46
	}
108
	}
47
	Auth-Type LDAP { 
109
	Auth-Type LDAP { 
48
		ldap 
110
		ldap 
49
    }
111
    }
50
}
112
}
51
 
113
 
52
accounting {
114
accounting {
53
	sql
115
	sql
54
}
116
}
55
 
117
 
56
session {
118
session {
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
}
66
 
131