test: Test rpcclient ncacn_ip_tcp:<ip-address>
authorVolker Lendecke <vl@samba.org>
Sun, 9 Jan 2022 12:39:12 +0000 (13:39 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 10 Jan 2022 10:59:36 +0000 (10:59 +0000)
Right now connecting to an IP address is broken.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
selftest/knownfail.d/rpcclient_ncacn_ip_tcp [new file with mode: 0644]
source3/selftest/tests.py

diff --git a/selftest/knownfail.d/rpcclient_ncacn_ip_tcp b/selftest/knownfail.d/rpcclient_ncacn_ip_tcp
new file mode 100644 (file)
index 0000000..42aecda
--- /dev/null
@@ -0,0 +1 @@
+.*samba3.blackbox.rpcclient.*ncacn_ip_tcp.*
index 69cdc5b7f85bdaf8eb0e7b991e8fd35a9b51496d..4a09a92bf245a1fbd4b5a1715fe236a808fa3a51 100755 (executable)
@@ -1054,6 +1054,14 @@ for s in signseal_options:
                  "none",
                  f'ncalrpc:[{a}{s}{e}] -c epmmap',
                  configuration])
+            if s != ",connect":
+                plantestsuite(
+                    f'samba3.blackbox.rpcclient over ncacn_ip_tcp with [{a}{s}{e}] ',
+                    "nt4_dc:local",
+                    [os.path.join(samba3srcdir, "script/tests/test_rpcclient.sh"),
+                     "none",
+                     f'ncacn_ip_tcp:"$SERVER_IP"[{a}{s}{e}] -c epmmap -U"$USERNAME"%"$PASSWORD"',
+                     configuration])
 
     # We should try more combinations in future, but this is all
     # the pre-calculated credentials cache supports at the moment