Subversion Repositories ALCASAR

Rev

Rev 2513 | 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 {
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
 
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
2615 tom.houday 94
 
2467 richard 95
	ldap {
96
		fail = 1
97
	}
98
	if ((ok || updated) && User-Password) {
99
		update control {
100
			Auth-Type := ldap
101
		}
102
	}
103
}
104
 
105
authenticate {
106
	Auth-Type PAP {
107
		pap
108
	}
109
	Auth-Type LDAP { 
110
		ldap 
111
    }
112
}
113
 
114
accounting {
115
	sql
116
}
117
 
118
session {
119
	sql
120
}
121
 
122
post-auth {
123
	Post-Auth-Type REJECT {
2615 tom.houday 124
		update reply {
125
			Reply-Message = "Login failed"
126
		}
2467 richard 127
		attr_filter.access_reject
128
	}
129
}
130
}