Subversion Repositories ALCASAR

Rev

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