summaryrefslogtreecommitdiff
path: root/package/heimdal/files
diff options
context:
space:
mode:
Diffstat (limited to 'package/heimdal/files')
-rw-r--r--package/heimdal/files/heimdal.init30
-rw-r--r--package/heimdal/files/kadmind.acl1
-rw-r--r--package/heimdal/files/kdc.conf4
-rw-r--r--package/heimdal/files/krb5.conf25
4 files changed, 60 insertions, 0 deletions
diff --git a/package/heimdal/files/heimdal.init b/package/heimdal/files/heimdal.init
new file mode 100644
index 000000000..fad5a7818
--- /dev/null
+++ b/package/heimdal/files/heimdal.init
@@ -0,0 +1,30 @@
+#!/bin/sh
+#FWINIT 70
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${kdc:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ /usr/sbin/kdc
+ /usr/sbin/kadmind &
+ /usr/sbin/kpasswdd &
+ ;;
+stop)
+ killall kdc
+ killall kadmind
+ killall kpasswdd
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/heimdal/files/kadmind.acl b/package/heimdal/files/kadmind.acl
new file mode 100644
index 000000000..e5da87fb5
--- /dev/null
+++ b/package/heimdal/files/kadmind.acl
@@ -0,0 +1 @@
+#principal [priv1,priv2,...] [glob-pattern]
diff --git a/package/heimdal/files/kdc.conf b/package/heimdal/files/kdc.conf
new file mode 100644
index 000000000..1adcb022e
--- /dev/null
+++ b/package/heimdal/files/kdc.conf
@@ -0,0 +1,4 @@
+[kdc]
+ acl_file = FILE:/etc/heimdal/kadmind.acl
+ detach = yes
+ enable-kerberos4 = false
diff --git a/package/heimdal/files/krb5.conf b/package/heimdal/files/krb5.conf
new file mode 100644
index 000000000..927ba24dc
--- /dev/null
+++ b/package/heimdal/files/krb5.conf
@@ -0,0 +1,25 @@
+[libdefaults]
+ default_realm = MY.REALM
+ clockskew = 300
+
+[realms]
+ MY.REALM = {
+ kdc = my.hostname
+ }
+
+[domain_realm]
+ .my.domain = MY.REALM
+
+[kdc]
+ database = {
+ realm = MY.REALM
+ dbname = db:/etc/heimdal/krb5db
+ mkey_file = /etc/heimdal/m-key
+ acl_file = /etc/heimdal/kadmind.acl
+ log_file = /var/log/krb5db.log
+ }
+
+[logging]
+ kdc = SYSLOG:INFO
+ default = SYSLOG:INFO
+