summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/schannel.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-11-11 04:32:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:43 -0500
commita8db4dcf03bccb2e1b954d097e758d6c7780db9e (patch)
tree6f91b3623b76da1da8194efd04fcce048fcfaf33 /source4/torture/rpc/schannel.c
parent5afda90c95e2e120f1121afb6b9fe7f5222ffa1e (diff)
downloadsamba-a8db4dcf03bccb2e1b954d097e758d6c7780db9e.tar.gz
samba-a8db4dcf03bccb2e1b954d097e758d6c7780db9e.tar.bz2
samba-a8db4dcf03bccb2e1b954d097e758d6c7780db9e.zip
r3677: Seperate the SamLogon tests from the main RPC-NETLOGON test into a
RPC-SAMLOGON of their own. I have expanded the tests to validate the use of various flags, which change some of the crypto behaviour. Andrew Bartlett (This used to be commit 3a140a3691ce49ebf4d1efcb99cfffd26c68a28f)
Diffstat (limited to 'source4/torture/rpc/schannel.c')
-rw-r--r--source4/torture/rpc/schannel.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source4/torture/rpc/schannel.c b/source4/torture/rpc/schannel.c
index 3355786d35..6941a203b1 100644
--- a/source4/torture/rpc/schannel.c
+++ b/source4/torture/rpc/schannel.c
@@ -22,6 +22,7 @@
#include "includes.h"
#include "librpc/gen_ndr/ndr_samr.h"
+#include "librpc/gen_ndr/ndr_netlogon.h"
#define TEST_MACHINE_NAME "schanneltest"
@@ -98,6 +99,23 @@ static BOOL test_schannel(TALLOC_CTX *mem_ctx,
goto failed;
}
+ status = dcerpc_pipe_connect_b(&p, &b,
+ DCERPC_NETLOGON_UUID,
+ DCERPC_NETLOGON_VERSION,
+ lp_workgroup(),
+ TEST_MACHINE_NAME,
+ machine_password);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("Failed to connect with schannel\n");
+ goto failed;
+ }
+
+#if 0
+ if (!test_netlogon_ops(p, mem_ctx)) {
+ printf("Failed to process schannel secured ops\n");
+ goto failed;
+ }
+#endif
torture_leave_domain(join_ctx);
dcerpc_pipe_close(p);