summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-12-13 15:43:35 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-12-13 23:42:05 +0100
commit8a4b5cdfea7b2370b9d700e7dbdaa8143cfc972c (patch)
tree258f936e5312d8550c015a06434d98669286bfdd
parentabed96535e0e47692be483cb35fc8b6224a0899d (diff)
downloadsamba-8a4b5cdfea7b2370b9d700e7dbdaa8143cfc972c.tar.gz
samba-8a4b5cdfea7b2370b9d700e7dbdaa8143cfc972c.tar.bz2
samba-8a4b5cdfea7b2370b9d700e7dbdaa8143cfc972c.zip
s4-selftest: Add test of RPC to a netbios alias
This tries to ensure our netbios lookup code is still run. Andrew Bartlett
-rw-r--r--selftest/target/Samba4.pm5
-rwxr-xr-xsource4/selftest/tests.py1
2 files changed, 3 insertions, 3 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index 9419921643..fa7988f67a 100644
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -1119,15 +1119,14 @@ sub provision_dc($$)
"2008",
21,
"locDCpass1",
- undef, "netbios aliases = DC1");
+ undef, "netbios aliases = localDC1-a");
return undef unless(defined $ret);
unless($self->add_wins_config("$prefix/private")) {
warn("Unable to add wins configuration");
return undef;
}
-
- $ret->{NETBIOSALIAS} = "DC1";
+ $ret->{NETBIOSALIAS} = "localdc1-a";
$ret->{DC_SERVER} = $ret->{SERVER};
$ret->{DC_SERVER_IP} = $ret->{SERVER_IP};
$ret->{DC_NETBIOSNAME} = $ret->{NETBIOSNAME};
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index 828226861d..82f0ae9872 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -324,6 +324,7 @@ plantestsuite("samba4.blackbox.gentest(dc)", "dc", [os.path.join(samba4srcdir, "
plantestsuite("samba4.blackbox.wbinfo(dc:local)", "dc:local", [os.path.join(samba4srcdir, "../nsswitch/tests/test_wbinfo.sh"), '$DOMAIN', '$USERNAME', '$PASSWORD', "dc"])
plantestsuite("samba4.blackbox.wbinfo(s4member:local)", "s4member:local", [os.path.join(samba4srcdir, "../nsswitch/tests/test_wbinfo.sh"), '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD', "s4member"])
plantestsuite("samba4.blackbox.chgdcpass(dc)", "dc", [os.path.join(bbdir, "test_chgdcpass.sh"), '$SERVER', "LOCALDC\$", '$REALM', '$DOMAIN', '$PREFIX', "aes256-cts-hmac-sha1-96", '$SELFTEST_PREFIX/dc'])
+plantestsuite_loadlist("samba4.rpc.echo against NetBIOS alias", "dc", [valgrindify(smb4torture), "$LISTOPT", 'ncacn_np:$NETBIOSALIAS', '-U$DOMAIN/$USERNAME%$PASSWORD', 'rpc.echo'])
# Tests using the "Simple" NTVFS backend
for t in ["base.rw1"]: