From 407ea586a11bc0469b92a4678e3da3a4ea1cb3b6 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 3 Jan 2017 09:55:08 +0100 Subject: [PATCH] committing changes in /etc after emerge run --- .etckeeper | 7 +++++++ conf.d/mit-krb5kadmind | 2 ++ conf.d/mit-krb5kdc | 2 ++ conf.d/mit-krb5kpropd | 2 ++ init.d/mit-krb5kadmind | 25 +++++++++++++++++++++++++ init.d/mit-krb5kdc | 24 ++++++++++++++++++++++++ init.d/mit-krb5kpropd | 24 ++++++++++++++++++++++++ krb5.conf.example | 19 +++++++++++++++++++ 8 files changed, 105 insertions(+) create mode 100644 conf.d/mit-krb5kadmind create mode 100644 conf.d/mit-krb5kdc create mode 100644 conf.d/mit-krb5kpropd create mode 100755 init.d/mit-krb5kadmind create mode 100755 init.d/mit-krb5kdc create mode 100755 init.d/mit-krb5kpropd create mode 100644 krb5.conf.example diff --git a/.etckeeper b/.etckeeper index 5312b85..ec99595 100755 --- a/.etckeeper +++ b/.etckeeper @@ -126,6 +126,9 @@ maybe chmod 0644 'conf.d/keymaps' maybe chmod 0644 'conf.d/killprocs' maybe chmod 0644 'conf.d/localmount' maybe chmod 0644 'conf.d/lvm' +maybe chmod 0644 'conf.d/mit-krb5kadmind' +maybe chmod 0644 'conf.d/mit-krb5kdc' +maybe chmod 0644 'conf.d/mit-krb5kpropd' maybe chmod 0644 'conf.d/modules' maybe chmod 0644 'conf.d/net-online' maybe chmod 0644 'conf.d/netmount' @@ -427,6 +430,9 @@ maybe chmod 0755 'init.d/loopback' maybe chmod 0755 'init.d/lvm' maybe chmod 0755 'init.d/lvm-monitoring' maybe chmod 0755 'init.d/lvmetad' +maybe chmod 0755 'init.d/mit-krb5kadmind' +maybe chmod 0755 'init.d/mit-krb5kdc' +maybe chmod 0755 'init.d/mit-krb5kpropd' maybe chmod 0755 'init.d/modules' maybe chmod 0755 'init.d/modules-load' maybe chmod 0755 'init.d/mount-ro' @@ -500,6 +506,7 @@ maybe chmod 0644 'kernel-config/do-genkernel' maybe chmod 0755 'kernel/install.d' maybe chmod 0755 'kernel/postinst.d' maybe chmod 0644 'kernel/postinst.d/.keep_sys-apps_debianutils-0' +maybe chmod 0644 'krb5.conf.example' maybe chmod 0755 'layman' maybe chmod 0644 'layman/layman.cfg' maybe chmod 0755 'layman/overlays' diff --git a/conf.d/mit-krb5kadmind b/conf.d/mit-krb5kadmind new file mode 100644 index 0000000..f6029b6 --- /dev/null +++ b/conf.d/mit-krb5kadmind @@ -0,0 +1,2 @@ +# Define startup options for Kerberos administration server +KADMIND_OPTS="" diff --git a/conf.d/mit-krb5kdc b/conf.d/mit-krb5kdc new file mode 100644 index 0000000..887d3d8 --- /dev/null +++ b/conf.d/mit-krb5kdc @@ -0,0 +1,2 @@ +# Define startup options for Kerberos KDC +KDC_OPTS="" diff --git a/conf.d/mit-krb5kpropd b/conf.d/mit-krb5kpropd new file mode 100644 index 0000000..d75d41a --- /dev/null +++ b/conf.d/mit-krb5kpropd @@ -0,0 +1,2 @@ +# Define startup options for Kerberos incremental propagation server +KPROPD_OPTS="" diff --git a/init.d/mit-krb5kadmind b/init.d/mit-krb5kadmind new file mode 100755 index 0000000..03e64f8 --- /dev/null +++ b/init.d/mit-krb5kadmind @@ -0,0 +1,25 @@ +#!/sbin/openrc-run + +#--------------------------------------------------------------------------- +# This script starts/stops the MIT Kerberos 5 Admin daemon +#--------------------------------------------------------------------------- + +daemon="MIT Kerberos 5 Admin daemon" +exec="/usr/sbin/kadmind" + +depend() { + need mit-krb5kdc + use net +} + +start() { + ebegin "Starting $daemon" + start-stop-daemon --start --quiet --exec ${exec} -- ${KADMIND_OPTS} 1>&2 + eend $? "Error starting $daemon" +} + +stop() { + ebegin "Stopping $daemon" + start-stop-daemon --stop --quiet --exec ${exec} 1>&2 + eend $? "Error stopping $daemon" +} diff --git a/init.d/mit-krb5kdc b/init.d/mit-krb5kdc new file mode 100755 index 0000000..ecd47e4 --- /dev/null +++ b/init.d/mit-krb5kdc @@ -0,0 +1,24 @@ +#!/sbin/openrc-run + +#--------------------------------------------------------------------------- +# This script starts/stops the MIT Kerberos 5 KDC +#--------------------------------------------------------------------------- + +daemon="MIT Kerberos 5 KDC" +exec="/usr/sbin/krb5kdc" + +depend() { + use net +} + +start() { + ebegin "Starting $daemon" + start-stop-daemon --start --quiet --exec ${exec} -- ${KDC_OPTS} 1>&2 + eend $? "Error starting $daemon" +} + +stop() { + ebegin "Stopping $daemon" + start-stop-daemon --stop --quiet --exec ${exec} 1>&2 + eend $? "Error stopping $daemon" +} diff --git a/init.d/mit-krb5kpropd b/init.d/mit-krb5kpropd new file mode 100755 index 0000000..f6ab787 --- /dev/null +++ b/init.d/mit-krb5kpropd @@ -0,0 +1,24 @@ +#!/sbin/openrc-run + +#--------------------------------------------------------------------------- +# This script starts/stops the MIT Kerberos 5 kpropd +#--------------------------------------------------------------------------- + +daemon="MIT Kerberos 5 kpropd" +exec="/usr/sbin/kpropd" + +depend() { + use net mit-krb5kdc mit-krb5kadmind +} + +start() { + ebegin "Starting $daemon" + start-stop-daemon --start --quiet --exec ${exec} -- ${KPROPD_OPTS} 1>&2 + eend $? "Error starting $daemon" +} + +stop() { + ebegin "Stopping $daemon" + start-stop-daemon --stop --quiet --exec ${exec} 1>&2 + eend $? "Error stopping $daemon" +} diff --git a/krb5.conf.example b/krb5.conf.example new file mode 100644 index 0000000..9d250bf --- /dev/null +++ b/krb5.conf.example @@ -0,0 +1,19 @@ +[libdefaults] + default_realm = ATHENA.MIT.EDU + +[realms] +# use "kdc = ..." if realm admins haven't put SRV records into DNS + ATHENA.MIT.EDU = { + admin_server = kerberos.mit.edu + } + ANDREW.CMU.EDU = { + admin_server = kdc-01.andrew.cmu.edu + } + +[domain_realm] + mit.edu = ATHENA.MIT.EDU + csail.mit.edu = CSAIL.MIT.EDU + .ucsc.edu = CATS.UCSC.EDU + +[logging] +# kdc = CONSOLE -- 2.39.5