summaryrefslogtreecommitdiff
path: root/package/krb5/files
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/krb5/files
Initial import
Diffstat (limited to 'package/krb5/files')
-rw-r--r--package/krb5/files/kadmind.acl1
-rw-r--r--package/krb5/files/kdc.conf13
-rw-r--r--package/krb5/files/krb5.conf16
-rw-r--r--package/krb5/files/krb5.init28
4 files changed, 58 insertions, 0 deletions
diff --git a/package/krb5/files/kadmind.acl b/package/krb5/files/kadmind.acl
new file mode 100644
index 000000000..e5da87fb5
--- /dev/null
+++ b/package/krb5/files/kadmind.acl
@@ -0,0 +1 @@
+#principal [priv1,priv2,...] [glob-pattern]
diff --git a/package/krb5/files/kdc.conf b/package/krb5/files/kdc.conf
new file mode 100644
index 000000000..e11202e23
--- /dev/null
+++ b/package/krb5/files/kdc.conf
@@ -0,0 +1,13 @@
+[kdcdefaults]
+ kdc_ports = 750,88
+
+[realms]
+ MY.REALM = {
+ database_name = /etc/krb5kdc/principal
+ admin_keytab = FILE:/etc/krb5kdc/kadm5.keytab
+ acl_file = /etc/krb5kdc/kadm5.acl
+ key_stash_file = /etc/krb5kdc/.k5.MY.REALM
+ kdc_ports = 750,88
+ max_life = 10h 0m 0s
+ max_renewable_life = 7d 0h 0m 0s
+ }
diff --git a/package/krb5/files/krb5.conf b/package/krb5/files/krb5.conf
new file mode 100644
index 000000000..02b274c4c
--- /dev/null
+++ b/package/krb5/files/krb5.conf
@@ -0,0 +1,16 @@
+[libdefaults]
+ default_realm = MY.REALM
+ clockskew = 300
+
+[realms]
+ MY.REALM = {
+ kdc = my.hostname
+ }
+
+[domain_realm]
+ .my.domain = MY.REALM
+
+[logging]
+ kdc = SYSLOG:INFO
+ default = SYSLOG:INFO
+
diff --git a/package/krb5/files/krb5.init b/package/krb5/files/krb5.init
new file mode 100644
index 000000000..732088fcb
--- /dev/null
+++ b/package/krb5/files/krb5.init
@@ -0,0 +1,28 @@
+#!/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/krb5kdc
+ /usr/sbin/kadmind &
+ ;;
+stop)
+ killall krb5kdc
+ killall kadmind
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?