diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2015-08-03 04:19:26 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2015-08-03 04:19:26 +0000 |
commit | 0214b0dfa6aeb5b640f1039954f72d75d8ac306d (patch) | |
tree | 03fa7cda5ff727ccce90e8e8fc7a499fb581560c /etc/examples/radiusd.conf | |
parent | 8a0309d6a6453f010fb63b21dbee60b984eccd45 (diff) |
Place etc/defaults/radiusd.conf and etc/rc.d/radiusd. Modify etc/rc
to hook the rc script and modify etc/rc.conf to make it disable by
default. Also add an entry for /etc/radiusd.conf to etc/changelist
and etc/mtree/special.
ok deraadt
Diffstat (limited to 'etc/examples/radiusd.conf')
-rw-r--r-- | etc/examples/radiusd.conf | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/etc/examples/radiusd.conf b/etc/examples/radiusd.conf new file mode 100644 index 00000000000..63b949900a4 --- /dev/null +++ b/etc/examples/radiusd.conf @@ -0,0 +1,26 @@ +# $OpenBSD: radiusd.conf,v 1.1 2015/08/03 04:19:25 yasuoka Exp $ + +listen on 0.0.0.0 +#listen on :: + +client 127.0.0.1/32 { + secret "secret" +} +client 192.168.0.0/24 { + secret "secret" + msgauth-required yes +} + +module load bsdauth "/usr/libexec/radiusd/radiusd_bsdauth" +module set bsdauth restrict-group operator + +module load radius "/usr/libexec/radiusd/radiusd_radius" +module set radius "secret" "testing123" +module set radius "server" "127.0.0.1" + +authenticate *@local { + authenticate-by bsdauth +} +authenticate *@example.com { + authenticate-by radius +} |