Skip to content

Commit 35409f4

Browse files
committed
Use the new syntax, listen for accounting, and use file module.
1 parent 58decf8 commit 35409f4

File tree

1 file changed

+25
-14
lines changed

1 file changed

+25
-14
lines changed

etc/examples/radiusd.conf

+25-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# $OpenBSD: radiusd.conf,v 1.5 2023/09/24 06:09:35 yasuoka Exp $
1+
# $OpenBSD: radiusd.conf,v 1.6 2025/03/10 04:05:14 yasuoka Exp $
22

33
listen on 0.0.0.0
4+
listen on 0.0.0.0 accounting
45
#listen on ::
6+
#listen on :: accounting
57

68
client 127.0.0.1/32 {
79
secret "secret"
@@ -13,20 +15,29 @@ client 192.168.0.0/24 {
1315
secret "secret"
1416
}
1517

16-
module load bsdauth "/usr/libexec/radiusd/radiusd_bsdauth"
17-
#module set bsdauth restrict-group users
18-
19-
module load radius "/usr/libexec/radiusd/radiusd_radius"
20-
module set radius secret "testing123"
21-
module set radius server "127.0.0.1"
18+
module bsdauth {
19+
set restrict-group users
20+
# set restrict-group operator
21+
}
2222

23-
module load strip-realm "/usr/libexec/radiusd/radiusd_standard"
24-
module set strip-realm strip-atmark-realm true
23+
module file {
24+
set path "/etc/npppd/npppd-users"
25+
}
2526

26-
authenticate *@local {
27-
authenticate-by bsdauth
28-
decorate-by strip-realm
27+
module radius {
28+
set secret "testing123"
29+
set server "127.0.0.1"
2930
}
30-
authenticate *@example.com {
31-
authenticate-by radius
31+
32+
module standard
33+
34+
# Use a special name "strip-realm", then the path must be sepecified
35+
module strip-realm "/usr/libexec/radiusd/radiusd_standard" {
36+
set strip-atmark-realm true
3237
}
38+
39+
authenticate *@local by bsdauth decorate-by strip-realm
40+
authenticate *@file by file decorate-by strip-realm
41+
authenticate * by radius
42+
43+
account * to standard

0 commit comments

Comments
 (0)