summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-02-09 02:30:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:53 -0500
commit5cecce1761c06b0641190cf7bb8e93bff9a88cf4 (patch)
tree749d647c537a3d7ed2c1081c3bef705d95a26227 /source4/torture/rpc
parent4c78d1bfa21947f649b061279e7388c478f77fe0 (diff)
downloadsamba-5cecce1761c06b0641190cf7bb8e93bff9a88cf4.tar.gz
samba-5cecce1761c06b0641190cf7bb8e93bff9a88cf4.tar.bz2
samba-5cecce1761c06b0641190cf7bb8e93bff9a88cf4.zip
r13402: Make Samba4 pass a nastier RPC-SCHANNEL test.
The new RPC-SCHANNEL test shows that the full credentials state must be kept in some shared memory, for some length of time. In particular, clients will reconnect with SCHANNEL (after loosing all connections) and expect that the credentials chain will remain in the same place. To achive this, we do the server-side crypto in a transaction, including the fetch/store of the shared state. Andrew Bartlett (This used to be commit 982a6aa871c9fce17410a9712cd9fa726025ff90)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/schannel.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source4/torture/rpc/schannel.c b/source4/torture/rpc/schannel.c
index 8e2aa41281..9084fb7ac3 100644
--- a/source4/torture/rpc/schannel.c
+++ b/source4/torture/rpc/schannel.c
@@ -393,15 +393,18 @@ static BOOL test_schannel(TALLOC_CTX *mem_ctx,
goto failed;
}
- /* We can only do the 'ex' ops, because the original SamLogon
- * call does shared credentials stuff Samba4 doesn't pass
- * yet */
-
+ /* Try the schannel-only SamLogonEx operation */
if (!test_netlogon_ex_ops(p_netlogon2, test_ctx, credentials, creds)) {
printf("Failed to process schannel secured NETLOGON EX ops\n");
ret = False;
}
+ /* And the more traditional style */
+ if (!test_netlogon_ops(p_netlogon2, test_ctx, credentials, creds)) {
+ printf("Failed to process schannel secured NETLOGON EX ops\n");
+ ret = False;
+ }
+
torture_leave_domain(join_ctx);
talloc_free(test_ctx);
return ret;