s4:selftest: add tests with seal and sign for backupkey
authorMatthieu Patou <mat@matws.net>
Sun, 9 Jan 2011 12:55:24 +0000 (15:55 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 14 Feb 2011 00:48:39 +0000 (01:48 +0100)
We need to specify sign and seal as the protocol operate really only on
sealed protected connections, in other case we are just checking that
the server returns something like unwilling to perform due to weak
security.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Feb 14 01:48:39 CET 2011 on sn-devel-104

source4/selftest/tests.py

index aa7ee5a5e88e74255b5575d2f3b5d5298b0c868d..2dd91fb50d0baea2d49dc77683e9faa04d3e6baa 100755 (executable)
@@ -311,6 +311,10 @@ for env in ["dc", "fl2000dc", "fl2003dc", "fl2008r2dc"]:
             plantestsuite_loadlist("samba4.rpc.echo on %s with %s and %s" % (transport, bindoptions, echooptions), env, [smb4torture, "$LISTOPT", "%s:$SERVER[%s]" % (transport, bindoptions), echooptions, '-U$USERNAME%$PASSWORD', '-W', '$DOMAIN', 'rpc.echo'])
     plansmbtorturetestsuite("net.api.become.dc", env, '$SERVER[%s] -U$USERNAME%%$PASSWORD -W $DOMAIN' % validate)
 
+for bindoptions in ["sign", "seal"]:
+    env = "dc"
+    plantestsuite_loadlist("samba4.rpc.backupkey with %s" % (bindoptions), env, [smb4torture, "$LISTOPT", "ncacn_np:$SERVER[%s]" % ( bindoptions), '-U$USERNAME%$PASSWORD', '-W', '$DOMAIN', 'rpc.backupkey'])
+
 for transport in transports:
     for bindoptions in ["sign", "seal"]:
         for ntlmoptions in [