summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-09-21 12:38:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:38 -0500
commit1d4fcd40a6222e0b9d35ace363e33a6bbb8cbd68 (patch)
tree5565a0760032d2285cd0dd9bce89d73acd8f479d
parentc44efdaa2242f50d75dd5b800e372dd5586c6deb (diff)
downloadsamba-1d4fcd40a6222e0b9d35ace363e33a6bbb8cbd68.tar.gz
samba-1d4fcd40a6222e0b9d35ace363e33a6bbb8cbd68.tar.bz2
samba-1d4fcd40a6222e0b9d35ace363e33a6bbb8cbd68.zip
r10387: By exporting KRB5_CONFIG pointing at a file of our choosing, we can
avoid DNS delays in our testsuite. The next step will be to use kerberos in the tests (awaits application of socketwrapper or hooks into our socket layer). Andrew Bartlett (This used to be commit b9e9cca14e345a338fd7ffe06f6862bb3cb74e78)
-rwxr-xr-xsource4/script/tests/selftest.sh23
1 files changed, 22 insertions, 1 deletions
diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh
index 64195f7e29..e24d1f27dc 100755
--- a/source4/script/tests/selftest.sh
+++ b/source4/script/tests/selftest.sh
@@ -3,7 +3,7 @@
DOMAIN=SAMBADOMAIN
USERNAME=administrator
-REALM=$DOMAIN
+REALM=SAMBA.EXAMPLE.COM
PASSWORD=penguin
SRCDIR=`pwd`
ROOT=$USER
@@ -45,6 +45,7 @@ TMPDIR=$PREFIX_ABS/tmp
LIBDIR=$PREFIX_ABS/lib
PIDDIR=$PREFIX_ABS/pid
CONFFILE=$LIBDIR/smb.conf
+KRB5_CONFIG=$LIBDIR/krb5.conf
PRIVATEDIR=$PREFIX_ABS/private
NCALRPCDIR=$PREFIX_ABS/ncalrpc
LOCKDIR=$PREFIX_ABS/lockdir
@@ -113,6 +114,26 @@ cat >$CONFFILE<<EOF
cifs:share = tmp
EOF
+cat >$KRB5_CONFIG<<EOF
+[libdefaults]
+ default_realm = SAMBA.EXAMPLE.COM
+ dns_lookup_realm = false
+ dns_lookup_kdc = false
+ ticket_lifetime = 24h
+ forwardable = yes
+
+[realms]
+ SAMBA.EXAMPLE.COM = {
+ kdc = 127.0.0.1
+ admin_server = 127.0.0.1
+ default_domain = samba.example.com
+ }
+[domain_realm]
+ .samba.example.com = SAMBA.EXAMPLE.COM
+EOF
+
+export KRB5_CONFIG
+
./setup/provision $CONFIGURATION --quiet --domain $DOMAIN --realm $REALM \
--adminpass $PASSWORD --root=$ROOT || exit 1