Subversion Repositories ALCASAR

Rev

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