summaryrefslogtreecommitdiff
path: root/source4/script/tests/selftest.sh
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-03-25 11:58:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:13 -0500
commita0effc9d040f1491fe2910d8c2e80d3d4e6b15cf (patch)
tree8dcffd0eee578e7b4a9b06215238fa4964045a79 /source4/script/tests/selftest.sh
parentd52f31848da2d1d6eb3b026d2922f8a11d64b956 (diff)
downloadsamba-a0effc9d040f1491fe2910d8c2e80d3d4e6b15cf.tar.gz
samba-a0effc9d040f1491fe2910d8c2e80d3d4e6b15cf.tar.bz2
samba-a0effc9d040f1491fe2910d8c2e80d3d4e6b15cf.zip
r14717: Don't provision the system as 'localhost', but instead list localhost
as an alias. The netbios name is then 'localtest', which will resolve with netbios and work with krb5. Andrew Bartlett (This used to be commit cc7c84bfc947e28bae56815d8bde5d0565328e2b)
Diffstat (limited to 'source4/script/tests/selftest.sh')
-rwxr-xr-xsource4/script/tests/selftest.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh
index dc5da9b61f..6575708c7f 100755
--- a/source4/script/tests/selftest.sh
+++ b/source4/script/tests/selftest.sh
@@ -8,6 +8,7 @@ PASSWORD=penguin
SRCDIR=`pwd`
ROOT=$USER
SERVER=localhost
+NETBIOSNAME=localtest
if test -z "$ROOT"; then
ROOT=$LOGNAME
fi
@@ -101,7 +102,8 @@ EOF
cat >$CONFFILE<<EOF
[global]
- netbios name = $SERVER
+ netbios name = $NETBIOSNAME
+ netbios aliases = $SERVER
workgroup = $DOMAIN
realm = $REALM
private dir = $PRIVATEDIR
@@ -157,7 +159,7 @@ export KRB5_CONFIG
echo -n "PROVISIONING..."
-./setup/provision $CONFIGURATION --host-name=$SERVER --host-ip=127.0.0.1 \
+./setup/provision $CONFIGURATION --host-name=$NETBIOSNAME --host-ip=127.0.0.1 \
--quiet --domain $DOMAIN --realm $REALM \
--adminpass $PASSWORD --root=$ROOT || exit 1
@@ -189,6 +191,9 @@ START=`date`
bin/nmblookup $CONFIGURATION -U $SERVER $SERVER
bin/nmblookup $CONFIGURATION -U $SERVER $SERVER
bin/nmblookup $CONFIGURATION -U $SERVER $SERVER
+ bin/nmblookup $CONFIGURATION -U $SERVER $SERVER
+ bin/nmblookup $CONFIGURATION -U $SERVER $SERVER
+ bin/nmblookup $CONFIGURATION -U $SERVER $SERVER
failed=0