From 952a293306fb8ace94eda61b2ead9e16577482db Mon Sep 17 00:00:00 2001 From: Menno Duursma Date: Fri, 30 Jul 2010 02:51:03 -0500 Subject: network/heimdal: Updated for version 1.3.3. Signed-off-by: Robby Workman --- network/heimdal/config/heimdal.csh | 8 ++++++++ network/heimdal/config/heimdal.sh | 10 ++++++++++ network/heimdal/config/kdc.conf | 20 ++++++++++++++++++++ network/heimdal/config/rc.heimdal | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 network/heimdal/config/heimdal.csh create mode 100644 network/heimdal/config/heimdal.sh create mode 100644 network/heimdal/config/kdc.conf create mode 100644 network/heimdal/config/rc.heimdal (limited to 'network/heimdal/config') diff --git a/network/heimdal/config/heimdal.csh b/network/heimdal/config/heimdal.csh new file mode 100644 index 0000000000..be96ce7347 --- /dev/null +++ b/network/heimdal/config/heimdal.csh @@ -0,0 +1,8 @@ +#!/bin/csh + +setenv MANPATH ${MANPATH}:/usr/heimdal/man + +setenv PATH "${PATH}:/usr/heimdal/bin" +if ( x"$uid" == x"0" ) then + setenv PATH "${PATH}:/usr/heimdal/sbin" +endif diff --git a/network/heimdal/config/heimdal.sh b/network/heimdal/config/heimdal.sh new file mode 100644 index 0000000000..561d30a296 --- /dev/null +++ b/network/heimdal/config/heimdal.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +MANPATH="$MANPATH:/usr/heimdal/man" +export MANPATH + +PATH="${PATH}:/usr/heimdal/bin" +if [ x"${EUID}" == x"0" ]; then + PATH="${PATH}:/usr/heimdal/sbin" +fi +export PATH diff --git a/network/heimdal/config/kdc.conf b/network/heimdal/config/kdc.conf new file mode 100644 index 0000000000..180b8ab69e --- /dev/null +++ b/network/heimdal/config/kdc.conf @@ -0,0 +1,20 @@ +# Leave this section out on the clients +[kdc] + # Space seperated list of addresses to listen for requests on. + #addresses = 192.168.0.1 172.16.0.1 10.0.0.1 + + # Following directive is needed when KDC starts atomatically + require-preauth = no + + # database key file + key-file = /var/heimdal/key-file + + # Check the addresses in the ticket when processing TGS requests. + check-ticket-addresses = TRUE + + # Permit tickets with no addresses. + #allow-null-ticket-addresses = TRUE + + # Permit anonymous tickets with no addresses. + #allow-anonymous = TRUE + diff --git a/network/heimdal/config/rc.heimdal b/network/heimdal/config/rc.heimdal new file mode 100644 index 0000000000..7c0b93fe72 --- /dev/null +++ b/network/heimdal/config/rc.heimdal @@ -0,0 +1,36 @@ +#!/bin/sh + +heimdal_start() { + if [ -r /var/heimdal/kdc.conf -a -x /usr/heimdal/libexec/kdc ]; then + echo "Starting the Kerberos service: /usr/heimdal/libexec/kdc --detach" + /usr/heimdal/libexec/kdc --detach + fi + +} + +heimdal_stop() { + killall kdc + +} + +heimdal_restart() { + heimdal_stop + sleep 1 + heimdal_start + +} + +case "$1" in +'start') + heimdal_start + ;; +'stop') + heimdal_stop + ;; +'restart') + heimdal_restart + ;; +*) + echo "Usage: $0 start|stop|restart" +esac + -- cgit v1.2.3