summaryrefslogtreecommitdiff
path: root/source4/selftest
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-18 20:26:26 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-07-20 09:17:14 +1000
commit02444afb87ae940d4d58d5566f16121279a57902 (patch)
tree598a80adc45de4fcb333991c0cd7f9119c380dea /source4/selftest
parent702e35ac6d4225049e948f2e20595f2a7f56639b (diff)
downloadsamba-02444afb87ae940d4d58d5566f16121279a57902.tar.gz
samba-02444afb87ae940d4d58d5566f16121279a57902.tar.bz2
samba-02444afb87ae940d4d58d5566f16121279a57902.zip
selftest: Add tests to verify that the named pipe proxy works.
This verifies that for NTLM authenticated connections, named pipe forwarding works as expected, including the session keys. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/selftest')
-rwxr-xr-xsource4/selftest/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index 518c28452b..292b428dc2 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -132,6 +132,13 @@ for bindoptions in ["seal,padcheck"] + validate_list + ["bigendian"]:
plantestsuite_loadlist("samba4.%s on %s with %s" % (t, transport, bindoptions), env, [valgrindify(smb4torture), "$LISTOPT", "%s:$SERVER[%s]" % (transport, bindoptions), '-U$USERNAME%$PASSWORD', '-W', '$DOMAIN', t])
plantestsuite_loadlist("samba4.rpc.samba3.sharesec on %s with %s" % (transport, bindoptions), env, [valgrindify(smb4torture), "$LISTOPT", "%s:$SERVER[%s]" % (transport, bindoptions), '-U$USERNAME%$PASSWORD', '-W', '$DOMAIN', '--option=torture:share=tmp', 'rpc.samba3-sharesec'])
+#Plugin S4 DC tests (confirms named pipe auth forwarding). This can be expanded once kerberos is supported in the plugin DC
+#
+for t in [ "rpc.lsalookup", "rpc.lsa.secrets", "rpc.lsa-getuser", "rpc.handles", "rpc.asyncbind", "rpc.authcontext", "rpc.lsa"]:
+ env = "plugin_s4_dc"
+ transport = "ncacn_np"
+ plantestsuite_loadlist("samba4.%s" % (t), env, [valgrindify(smb4torture), "$LISTOPT", "%s:$SERVER" % (transport), '-U$USERNAME%$PASSWORD', '-W', '$DOMAIN', '-k', 'no', t])
+
for bindoptions in [""] + validate_list + ["bigendian"]:
for t in auto_rpc_tests:
plantestsuite_loadlist("samba4.%s with %s" % (t, bindoptions), "dc", [valgrindify(smb4torture), "$LISTOPT", "$SERVER[%s]" % bindoptions, '-U$USERNAME%$PASSWORD', '-W', '$DOMAIN', t])