Browse Source

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
OPENBSD_5_8
yasuoka 9 years ago
parent
commit
9493d88593
7 changed files with 48 additions and 8 deletions
  1. +3
    -3
      src/etc/Makefile
  2. +2
    -1
      src/etc/changelist
  3. +26
    -0
      src/etc/examples/radiusd.conf
  4. +2
    -1
      src/etc/mtree/special
  5. +2
    -2
      src/etc/rc
  6. +2
    -1
      src/etc/rc.conf
  7. +11
    -0
      src/etc/rc.d/radiusd

+ 3
- 3
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.404 2015/07/03 22:05:53 millert Exp $
# $OpenBSD: Makefile,v 1.405 2015/08/03 04:19:25 yasuoka Exp $
TZDIR= /usr/share/zoneinfo TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain LOCALTIME= Canada/Mountain
@ -47,8 +47,8 @@ EXAMPLES+= wsconsctl.conf
# -rw------- # -rw-------
EXAMPLES_600=bgpd.conf dvmrpd.conf hostapd.conf iked.conf ipsec.conf \ EXAMPLES_600=bgpd.conf dvmrpd.conf hostapd.conf iked.conf ipsec.conf \
ldapd.conf ldpd.conf ospf6d.conf ospfd.conf pf.conf rc.local \
rc.securelevel rc.shutdown relayd.conf ripd.conf \
ldapd.conf ldpd.conf ospf6d.conf ospfd.conf pf.conf radiusd.conf \
rc.local rc.securelevel rc.shutdown relayd.conf ripd.conf \
sasyncd.conf snmpd.conf ypldap.conf sasyncd.conf snmpd.conf ypldap.conf
# -r-xr-xr-x # -r-xr-xr-x


+ 2
- 1
src/etc/changelist View File

@ -1,4 +1,4 @@
# $OpenBSD: changelist,v 1.107 2015/07/23 14:49:10 sthen Exp $
# $OpenBSD: changelist,v 1.108 2015/08/03 04:19:25 yasuoka Exp $
# #
# List of files which the security script backs up and checks # List of files which the security script backs up and checks
# for modifications. # for modifications.
@ -90,6 +90,7 @@
/etc/profile /etc/profile
/etc/protocols /etc/protocols
+/etc/pwd.db +/etc/pwd.db
+/etc/radiusd.conf
/etc/rbootd.conf /etc/rbootd.conf
/etc/rc /etc/rc
/etc/rc.conf /etc/rc.conf


+ 26
- 0
src/etc/examples/radiusd.conf View File

@ -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
}

+ 2
- 1
src/etc/mtree/special View File

@ -1,4 +1,4 @@
# $OpenBSD: special,v 1.114 2015/07/23 14:49:10 sthen Exp $
# $OpenBSD: special,v 1.115 2015/08/03 04:19:25 yasuoka Exp $
# #
# Hand-crafted mtree specification for the dangerous files. # Hand-crafted mtree specification for the dangerous files.
# #
@ -75,6 +75,7 @@ ospf6d.conf type=file mode=0600 uname=root gname=wheel optional
passwd type=file mode=0644 uname=root gname=wheel passwd type=file mode=0644 uname=root gname=wheel
pf.conf type=file mode=0600 uname=root gname=wheel optional pf.conf type=file mode=0600 uname=root gname=wheel optional
printcap type=file mode=0644 uname=root gname=wheel optional printcap type=file mode=0644 uname=root gname=wheel optional
radiusd.conf type=file mode=0600 uname=root gname=wheel optional
rc type=file mode=0644 uname=root gname=wheel rc type=file mode=0644 uname=root gname=wheel
rc.conf type=file mode=0644 uname=root gname=wheel rc.conf type=file mode=0644 uname=root gname=wheel
rc.conf.local type=file mode=0644 uname=root gname=wheel optional rc.conf.local type=file mode=0644 uname=root gname=wheel optional


+ 2
- 2
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.454 2015/07/20 06:59:39 rpe Exp $
# $OpenBSD: rc,v 1.455 2015/08/03 04:19:25 yasuoka Exp $
# System startup script run by init on autoboot or after single-user. # System startup script run by init on autoboot or after single-user.
# Output and error are redirected to console by init, and the console is the # Output and error are redirected to console by init, and the console is the
@ -494,7 +494,7 @@ echo 'preserving editor files.'; /usr/libexec/vi.recover
echo -n 'starting network daemons:' echo -n 'starting network daemons:'
start_daemon ldomd sshd snmpd ldpd ripd ospfd ospf6d bgpd ifstated start_daemon ldomd sshd snmpd ldpd ripd ospfd ospf6d bgpd ifstated
start_daemon relayd dhcpd dhcrelay mrouted dvmrpd
start_daemon relayd dhcpd dhcrelay mrouted dvmrpd radiusd
if ifconfig lo0 inet6 >/dev/null 2>&1; then if ifconfig lo0 inet6 >/dev/null 2>&1; then
fw=`sysctl -n net.inet6.ip6.forwarding` fw=`sysctl -n net.inet6.ip6.forwarding`


+ 2
- 1
src/etc/rc.conf View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.conf,v 1.203 2015/05/18 13:48:38 deraadt Exp $
# $OpenBSD: rc.conf,v 1.204 2015/08/03 04:19:25 yasuoka Exp $
# DO NOT EDIT THIS FILE!! # DO NOT EDIT THIS FILE!!
# #
@ -44,6 +44,7 @@ ntpd_flags=
ospfd_flags=NO ospfd_flags=NO
ospf6d_flags=NO ospf6d_flags=NO
pflogd_flags= # add more flags, e.g. "-s 256" pflogd_flags= # add more flags, e.g. "-s 256"
radiusd_flags=NO
rarpd_flags=NO rarpd_flags=NO
rbootd_flags=NO rbootd_flags=NO
relayd_flags=NO relayd_flags=NO


+ 11
- 0
src/etc/rc.d/radiusd View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# $OpenBSD: radiusd,v 1.1 2015/08/03 04:19:25 yasuoka Exp $
daemon="/usr/sbin/radiusd"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_cmd $1

Loading…
Cancel
Save