s4-selftest: Add test of RPC to a netbios alias
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 Dec 2011 04:43:35 +0000 (15:43 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 13 Dec 2011 22:42:05 +0000 (23:42 +0100)
This tries to ensure our netbios lookup code is still run.

Andrew Bartlett

selftest/target/Samba4.pm
source4/selftest/tests.py

index 9419921643763de21cb3e3920a89577fbf09d813..fa7988f67aa5d08389e8320afdfa2da1f7db249b 100644 (file)
@@ -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};
index 828226861d86c05887f3f395b41ae1209420abd1..82f0ae987238545bd7c0e00ff6fbdecbeb68f382 100755 (executable)
@@ -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"]: