svn commit: samba r10387 - in branches/SAMBA_4_0/source/script/tests: .

abartlet at samba.org abartlet at samba.org
Wed Sep 21 12:38:26 GMT 2005


Author: abartlet
Date: 2005-09-21 12:38:25 +0000 (Wed, 21 Sep 2005)
New Revision: 10387

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10387

Log:
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

Modified:
   branches/SAMBA_4_0/source/script/tests/selftest.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/selftest.sh	2005-09-21 12:24:41 UTC (rev 10386)
+++ branches/SAMBA_4_0/source/script/tests/selftest.sh	2005-09-21 12:38:25 UTC (rev 10387)
@@ -3,7 +3,7 @@
 
 DOMAIN=SAMBADOMAIN
 USERNAME=administrator
-REALM=$DOMAIN
+REALM=SAMBA.EXAMPLE.COM
 PASSWORD=penguin
 SRCDIR=`pwd`
 ROOT=$USER
@@ -45,6 +45,7 @@
 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 @@
 	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
 



More information about the samba-cvs mailing list