1
|
/usr/local/etc/raddb/sites-enabled/default
|
2
|
server default {
|
3
|
listen {
|
4
|
type = auth
|
5
|
ipaddr = *
|
6
|
port = 1812
|
7
|
}
|
8
|
listen {
|
9
|
type = acct
|
10
|
ipaddr = *
|
11
|
port = 1813
|
12
|
}
|
13
|
|
14
|
authorize {
|
15
|
# filter_username
|
16
|
# filter_password
|
17
|
preprocess
|
18
|
# operator-name
|
19
|
# cui
|
20
|
##### AUTHORIZE FOR PLAIN MAC-AUTH IS DISABLED #####
|
21
|
# auth_log
|
22
|
chap
|
23
|
mschap
|
24
|
digest
|
25
|
# wimax
|
26
|
# IPASS
|
27
|
suffix
|
28
|
ntdomain
|
29
|
eap {
|
30
|
ok = return
|
31
|
# updated = return
|
32
|
}
|
33
|
# unix
|
34
|
files
|
35
|
if ((notfound || noop) && ("%{%{Control:Auth-Type}:-No-Accept}" != "Accept")) {
|
36
|
### sql DISABLED ###
|
37
|
if (true) {
|
38
|
|
39
|
|
40
|
redundant {
|
41
|
ldap
|
42
|
# this line adds ldap2 when activated
|
43
|
### ldap2 disabled ###
|
44
|
}
|
45
|
|
46
|
if (notfound || noop) {
|
47
|
reject
|
48
|
}
|
49
|
}
|
50
|
}
|
51
|
|
52
|
-daily
|
53
|
-weekly
|
54
|
-monthly
|
55
|
-forever
|
56
|
# Formerly checkval
|
57
|
if (&request:Calling-Station-Id == &control:Calling-Station-Id) {
|
58
|
ok
|
59
|
}
|
60
|
expiration
|
61
|
logintime
|
62
|
pap
|
63
|
Autz-Type Status-Server {
|
64
|
|
65
|
}
|
66
|
}
|
67
|
|
68
|
authenticate {
|
69
|
Auth-Type PAP {
|
70
|
pap
|
71
|
}
|
72
|
Auth-Type CHAP {
|
73
|
chap
|
74
|
}
|
75
|
Auth-Type MS-CHAP {
|
76
|
mschap
|
77
|
}
|
78
|
mschap
|
79
|
Auth-Type MOTP {
|
80
|
motp
|
81
|
}
|
82
|
Auth-Type GOOGLEAUTH {
|
83
|
googleauth
|
84
|
}
|
85
|
digest
|
86
|
# pam
|
87
|
# unix
|
88
|
|
89
|
Auth-Type LDAP {
|
90
|
ldap
|
91
|
### ldap2 disabled ###
|
92
|
}
|
93
|
|
94
|
eap
|
95
|
# Auth-Type eap {
|
96
|
# eap {
|
97
|
# handled = 1
|
98
|
# }
|
99
|
# if (handled && (Response-Packet-Type == Access-Challenge)) {
|
100
|
# attr_filter.access_challenge.post-auth
|
101
|
# handled # override the "updated" code from attr_filter
|
102
|
# }
|
103
|
# }
|
104
|
}
|
105
|
|
106
|
preacct {
|
107
|
preprocess
|
108
|
##### ACCOUNTING FOR PLAIN MAC-AUTH DISABLED #####
|
109
|
# acct_counters64
|
110
|
update request {
|
111
|
&FreeRADIUS-Acct-Session-Start-Time = "%{expr: %l - %{%{Acct-Session-Time}:-0} - %{%{Acct-Delay-Time}:-0}}"
|
112
|
}
|
113
|
acct_unique
|
114
|
# IPASS
|
115
|
suffix
|
116
|
ntdomain
|
117
|
files
|
118
|
}
|
119
|
|
120
|
accounting {
|
121
|
# cui
|
122
|
detail
|
123
|
### This makes it possible to run the datacounter_acct module only on accounting-stop and interim-updates
|
124
|
if ((request:Acct-Status-Type == Stop) || (request:Acct-Status-Type == Interim-Update)) {
|
125
|
datacounterdaily
|
126
|
datacounterweekly
|
127
|
datacountermonthly
|
128
|
datacounterforever
|
129
|
}
|
130
|
# unix
|
131
|
radutmp
|
132
|
# sradutmp
|
133
|
# main_pool
|
134
|
### sql DISABLED ###
|
135
|
daily
|
136
|
weekly
|
137
|
monthly
|
138
|
forever
|
139
|
# if (noop) {
|
140
|
# ok
|
141
|
# }
|
142
|
# pgsql-voip
|
143
|
exec
|
144
|
attr_filter.accounting_response
|
145
|
Acct-Type Status-Server {
|
146
|
|
147
|
}
|
148
|
}
|
149
|
|
150
|
session {
|
151
|
# radutmp
|
152
|
radutmp
|
153
|
}
|
154
|
|
155
|
post-auth {
|
156
|
# if (!&reply:State) {
|
157
|
# update reply {
|
158
|
# State := "0x%{randstr:16h}"
|
159
|
# }
|
160
|
# }
|
161
|
update {
|
162
|
&reply: += &session-state:
|
163
|
}
|
164
|
# main_pool
|
165
|
# cui
|
166
|
# reply_log
|
167
|
### sql DISABLED ###
|
168
|
# ldap
|
169
|
exec
|
170
|
# wimax
|
171
|
# update reply {
|
172
|
# Reply-Message += "%{TLS-Cert-Serial}"
|
173
|
# Reply-Message += "%{TLS-Cert-Expiration}"
|
174
|
# Reply-Message += "%{TLS-Cert-Subject}"
|
175
|
# Reply-Message += "%{TLS-Cert-Issuer}"
|
176
|
# Reply-Message += "%{TLS-Cert-Common-Name}"
|
177
|
# Reply-Message += "%{TLS-Cert-Subject-Alt-Name-Email}"
|
178
|
#
|
179
|
# Reply-Message += "%{TLS-Client-Cert-Serial}"
|
180
|
# Reply-Message += "%{TLS-Client-Cert-Expiration}"
|
181
|
# Reply-Message += "%{TLS-Client-Cert-Subject}"
|
182
|
# Reply-Message += "%{TLS-Client-Cert-Issuer}"
|
183
|
# Reply-Message += "%{TLS-Client-Cert-Common-Name}"
|
184
|
# Reply-Message += "%{TLS-Client-Cert-Subject-Alt-Name-Email}"
|
185
|
# }
|
186
|
# insert_acct_class
|
187
|
# if (&reply:EAP-Session-Id) {
|
188
|
# update reply {
|
189
|
# EAP-Key-Name := &reply:EAP-Session-Id
|
190
|
# }
|
191
|
# }
|
192
|
remove_reply_message_if_eap
|
193
|
Post-Auth-Type REJECT {
|
194
|
# log failed authentications in SQL, too.
|
195
|
# sql
|
196
|
attr_filter.access_reject
|
197
|
eap
|
198
|
remove_reply_message_if_eap
|
199
|
}
|
200
|
Post-Auth-Type Challenge {
|
201
|
|
202
|
}
|
203
|
}
|
204
|
|
205
|
pre-proxy {
|
206
|
# operator-name
|
207
|
# cui
|
208
|
# files
|
209
|
attr_filter.pre-proxy
|
210
|
# pre_proxy_log
|
211
|
}
|
212
|
|
213
|
post-proxy {
|
214
|
|
215
|
# post_proxy_log
|
216
|
attr_filter.post-proxy
|
217
|
eap
|
218
|
# Post-Proxy-Type Fail-Accounting {
|
219
|
# detail
|
220
|
# }
|
221
|
}
|
222
|
}
|