summaryrefslogtreecommitdiff
path: root/network/heimdal/config
diff options
context:
space:
mode:
authorThibaut Notteboom <thibaut.notteboom@gmail.com>2017-02-19 22:54:09 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-21 16:44:32 +0700
commitf14ca0920daaf12df242ee37a586be451f3ccb65 (patch)
tree8a0194f5c53f216347c6131110e323c22be9c98e /network/heimdal/config
parent25b077145f4400f047704857d477660352e5103e (diff)
downloadslackbuilds-f14ca0920daaf12df242ee37a586be451f3ccb65.tar.gz
network/heimdal: Updated for version 7.1.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/heimdal/config')
-rw-r--r--network/heimdal/config/heimdal.csh8
-rw-r--r--network/heimdal/config/heimdal.sh10
-rw-r--r--network/heimdal/config/kadmind.acl5
-rw-r--r--network/heimdal/config/kdc.conf11
-rw-r--r--network/heimdal/config/krb5.conf18
-rw-r--r--network/heimdal/config/rc.heimdal36
-rw-r--r--network/heimdal/config/rc.ipropd-master36
-rw-r--r--network/heimdal/config/rc.ipropd-slave37
-rw-r--r--network/heimdal/config/rc.kadmind34
-rw-r--r--network/heimdal/config/rc.kdc34
-rw-r--r--network/heimdal/config/rc.kpasswdd34
11 files changed, 201 insertions, 62 deletions
diff --git a/network/heimdal/config/heimdal.csh b/network/heimdal/config/heimdal.csh
deleted file mode 100644
index be96ce7347..0000000000
--- a/network/heimdal/config/heimdal.csh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/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
deleted file mode 100644
index 561d30a296..0000000000
--- a/network/heimdal/config/heimdal.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/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/kadmind.acl b/network/heimdal/config/kadmind.acl
new file mode 100644
index 0000000000..d8885f53b6
--- /dev/null
+++ b/network/heimdal/config/kadmind.acl
@@ -0,0 +1,5 @@
+# Leave this section out on the clients
+# See the kadmind(8) man page for a full description of this file.
+
+# joe/admin@EXAMPLE.COM all
+# mallory/admin@EXAMPLE.COM add,get-keys host/*@EXAMPLE.COM
diff --git a/network/heimdal/config/kdc.conf b/network/heimdal/config/kdc.conf
index 180b8ab69e..d63d571f61 100644
--- a/network/heimdal/config/kdc.conf
+++ b/network/heimdal/config/kdc.conf
@@ -1,20 +1,15 @@
# Leave this section out on the clients
+# See the kdc(8) man page for a full description of this file.
[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
+ addresses = 0.0.0.0
# Check the addresses in the ticket when processing TGS requests.
- check-ticket-addresses = TRUE
+ #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/krb5.conf b/network/heimdal/config/krb5.conf
new file mode 100644
index 0000000000..9c945893cd
--- /dev/null
+++ b/network/heimdal/config/krb5.conf
@@ -0,0 +1,18 @@
+[libdefaults]
+ default_realm = MY.REALM
+ clockskew = 300
+
+[realms]
+ MY.REALM = {
+ kdc = MY.COMPUTER
+ }
+ OTHER.REALM = {
+ kdc = OTHER.COMPUTER
+ }
+[domain_realm]
+ .my.domain = MY.REALM
+
+[logging]
+ kdc = SYSLOG:DEBUG:AUTH
+ admin_server = SYSLOG:DEBUG:AUTH
+ default = SYSLOG:DEBUG:AUTH
diff --git a/network/heimdal/config/rc.heimdal b/network/heimdal/config/rc.heimdal
deleted file mode 100644
index 7c0b93fe72..0000000000
--- a/network/heimdal/config/rc.heimdal
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/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
-
diff --git a/network/heimdal/config/rc.ipropd-master b/network/heimdal/config/rc.ipropd-master
new file mode 100644
index 0000000000..744943b4c5
--- /dev/null
+++ b/network/heimdal/config/rc.ipropd-master
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+HOSTNAME=`hostname -f`
+
+ipropd_master_start() {
+ if [ -x /usr/libexec/ipropd-master ]; then
+ echo "Starting the ipropd-master service: /usr/libexec/ipropd-master --detach"
+ /usr/libexec/ipropd-master --detach --hostname=$HOSTNAME
+ fi
+}
+
+ipropd_master_stop() {
+ killall ipropd-master
+}
+
+ipropd_master_restart() {
+ ipropd-master_stop
+ sleep 1
+ ipropd-master_start
+}
+
+case "$1" in
+ 'start')
+ ipropd_master_start
+ ;;
+ 'stop')
+ ipropd_master_stop
+ ;;
+ 'restart')
+ ipropd_master_restart
+ ;;
+ *)
+ echo "Usage: $0 start|stop|restart"
+ ;;
+esac
+
diff --git a/network/heimdal/config/rc.ipropd-slave b/network/heimdal/config/rc.ipropd-slave
new file mode 100644
index 0000000000..6b1a8c7274
--- /dev/null
+++ b/network/heimdal/config/rc.ipropd-slave
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+KEYTAB=/etc/iprop.keytab
+HOSTNAME=`hostname -f`
+
+ipropd_slave_start() {
+ if [ -x /usr/libexec/ipropd-slave ]; then
+ echo "Starting the ipropd-slave service: /usr/libexec/ipropd-slave --detach"
+ /usr/libexec/ipropd-slave --detach --keytab=$KEYTAB --hostname=$HOSTNAME
+ fi
+}
+
+ipropd_slave_stop() {
+ killall ipropd-slave
+}
+
+ipropd_slave_restart() {
+ ipropd-slave_stop
+ sleep 1
+ ipropd-slave_start
+}
+
+case "$1" in
+ 'start')
+ ipropd_slave_start
+ ;;
+ 'stop')
+ ipropd_slave_stop
+ ;;
+ 'restart')
+ ipropd_slave_restart
+ ;;
+ *)
+ echo "Usage: $0 start|stop|restart"
+ ;;
+esac
+
diff --git a/network/heimdal/config/rc.kadmind b/network/heimdal/config/rc.kadmind
new file mode 100644
index 0000000000..23b5447078
--- /dev/null
+++ b/network/heimdal/config/rc.kadmind
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+kadmind_start() {
+ if [ -x /usr/libexec/kadmind ]; then
+ echo "Starting the kadmind service: /usr/libexec/kadmind"
+ /usr/libexec/kadmind --detach
+ fi
+}
+
+kadmind_stop() {
+ killall kadmind
+}
+
+kadmind_restart() {
+ kadmind_stop
+ sleep 1
+ kadmind_start
+}
+
+case "$1" in
+ 'start')
+ kadmind_start
+ ;;
+ 'stop')
+ kadmind_stop
+ ;;
+ 'restart')
+ kadmind_restart
+ ;;
+ *)
+ echo "Usage: $0 start|stop|restart"
+ ;;
+esac
+
diff --git a/network/heimdal/config/rc.kdc b/network/heimdal/config/rc.kdc
new file mode 100644
index 0000000000..3233794801
--- /dev/null
+++ b/network/heimdal/config/rc.kdc
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+kdc_start() {
+ if [ -x /usr/libexec/kdc ]; then
+ echo "Starting the kdc service: /usr/libexec/kdc --detach"
+ /usr/libexec/kdc --detach
+ fi
+}
+
+kdc_stop() {
+ killall kdc
+}
+
+kdc_restart() {
+ kdc_stop
+ sleep 1
+ kdc_start
+}
+
+case "$1" in
+ 'start')
+ kdc_start
+ ;;
+ 'stop')
+ kdc_stop
+ ;;
+ 'restart')
+ kdc_restart
+ ;;
+ *)
+ echo "Usage: $0 start|stop|restart"
+ ;;
+esac
+
diff --git a/network/heimdal/config/rc.kpasswdd b/network/heimdal/config/rc.kpasswdd
new file mode 100644
index 0000000000..f712ee8e45
--- /dev/null
+++ b/network/heimdal/config/rc.kpasswdd
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+kpasswdd_start() {
+ if [ -x /usr/libexec/kpasswdd ]; then
+ echo "Starting the kpasswdd service: /usr/libexec/kpasswdd"
+ /usr/libexec/kpasswdd --detach
+ fi
+}
+
+kpasswdd_stop() {
+ killall kpasswdd
+}
+
+kpasswdd_restart() {
+ kpasswdd_stop
+ sleep 1
+ kpasswdd_start
+}
+
+case "$1" in
+ 'start')
+ kpasswdd_start
+ ;;
+ 'stop')
+ kpasswdd_stop
+ ;;
+ 'restart')
+ kpasswdd_restart
+ ;;
+ *)
+ echo "Usage: $0 start|stop|restart"
+ ;;
+esac
+