summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/schannel.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-09-19 21:14:17 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-12-22 17:48:24 +0100
commit2f5e9aae860b55203c3efd2e558cd27e00f734ed (patch)
tree75caae9f6ee62b584a2ac4f6f236df80ad80695a /source4/torture/rpc/schannel.c
parent00d0b4d6d0e60f9bdb80404dbaab9e49af77236b (diff)
downloadsamba-2f5e9aae860b55203c3efd2e558cd27e00f734ed.tar.gz
samba-2f5e9aae860b55203c3efd2e558cd27e00f734ed.tar.bz2
samba-2f5e9aae860b55203c3efd2e558cd27e00f734ed.zip
s4-torture: Test rpc schannel netr_LogonGetCapability.
metze
Diffstat (limited to 'source4/torture/rpc/schannel.c')
-rw-r--r--source4/torture/rpc/schannel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/rpc/schannel.c b/source4/torture/rpc/schannel.c
index dff9fe7055..30b8a1d1ae 100644
--- a/source4/torture/rpc/schannel.c
+++ b/source4/torture/rpc/schannel.c
@@ -312,6 +312,10 @@ static bool test_schannel(struct torture_context *tctx,
status = dcerpc_schannel_creds(p_netlogon->conn->security_state.generic_state, tctx, &creds);
torture_assert_ntstatus_ok(tctx, status, "schannel creds");
+ /* checks the capabilities */
+ torture_assert(tctx, test_netlogon_capabilities(p_netlogon, tctx, credentials, creds),
+ "Failed to process schannel secured capability ops (on fresh connection)");
+
/* do a couple of logins */
torture_assert(tctx, test_netlogon_ops(p_netlogon, tctx, credentials, creds),
"Failed to process schannel secured NETLOGON ops");
@@ -391,6 +395,10 @@ static bool test_schannel(struct torture_context *tctx,
torture_assert_ntstatus_ok(tctx, status, "auth failed");
+ /* checks the capabilities */
+ torture_assert(tctx, test_netlogon_capabilities(p_netlogon2, tctx, credentials, creds),
+ "Failed to process schannel secured capability ops (on fresh connection)");
+
/* Try the schannel-only SamLogonEx operation */
torture_assert(tctx, test_netlogon_ex_ops(p_netlogon2, tctx, credentials, creds),
"Failed to process schannel secured NETLOGON EX ops (on fresh connection)");