torture: Use DCERPC_SCHANNEL_AUTO in rpc.schannel.schannel2 test
authorAndrew Bartlett <abartlet@samba.org>
Wed, 14 Dec 2016 04:45:19 +0000 (17:45 +1300)
committerStefan Metzmacher <metze@samba.org>
Wed, 14 Dec 2016 10:55:18 +0000 (11:55 +0100)
This allows it to run against modern servers that do not permit NT4 crypto

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/rpc/schannel.c

index da81c52bd5abba8f0ff457c12c0c41cea49eeb1d..08c1b09b07607a90cc7e7aa90a982dcc42418ef9 100644 (file)
@@ -709,7 +709,7 @@ bool torture_rpc_schannel2(struct torture_context *torture)
        struct dcerpc_binding *b;
        struct dcerpc_pipe *p1 = NULL, *p2 = NULL;
        struct cli_credentials *credentials1, *credentials2;
-       uint32_t dcerpc_flags = DCERPC_SCHANNEL | DCERPC_SIGN;
+       uint32_t dcerpc_flags = DCERPC_SCHANNEL | DCERPC_SCHANNEL_AUTO | DCERPC_SIGN;
 
        join_ctx = torture_join_domain(torture, talloc_asprintf(torture, "%s2", TEST_MACHINE_NAME),
                                       ACB_WSTRUST, &credentials1);