summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/netlogon.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-01-09 07:39:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:33 -0500
commitc32f3129bc0894079e71beee7c3101283adbc9bf (patch)
tree61d87803d3a68f32fb56dfccf7d0d5c535f39a99 /source4/torture/rpc/netlogon.c
parent95b84ceeaa66ccca8eb543e0e2aa029c6b32781b (diff)
downloadsamba-c32f3129bc0894079e71beee7c3101283adbc9bf.tar.gz
samba-c32f3129bc0894079e71beee7c3101283adbc9bf.tar.bz2
samba-c32f3129bc0894079e71beee7c3101283adbc9bf.zip
r4614: Fix RPC-SAMLOGON, to use the workstation context (forgot to globally replace).
Andrew Bartlett (This used to be commit ddb54d4ea1610b38e011e2f217ded7b6278d5290)
Diffstat (limited to 'source4/torture/rpc/netlogon.c')
-rw-r--r--source4/torture/rpc/netlogon.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c
index dd6a6917f9..774abbdf82 100644
--- a/source4/torture/rpc/netlogon.c
+++ b/source4/torture/rpc/netlogon.c
@@ -130,6 +130,7 @@ BOOL test_SetupCredentials2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
uint32_t negotiate_flags,
const char *machine_name,
const char *plain_pass,
+ int sec_chan_type,
struct creds_CredentialState *creds)
{
NTSTATUS status;
@@ -157,7 +158,7 @@ BOOL test_SetupCredentials2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
a.in.server_name = NULL;
a.in.account_name = talloc_asprintf(mem_ctx, "%s$", machine_name);
- a.in.secure_channel_type = SEC_CHAN_BDC;
+ a.in.secure_channel_type = sec_chan_type;
a.in.computer_name = machine_name;
a.in.negotiate_flags = &negotiate_flags;
a.out.negotiate_flags = &negotiate_flags;
@@ -761,7 +762,8 @@ static BOOL test_DatabaseSync2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
BOOL ret = True;
if (!test_SetupCredentials2(p, mem_ctx, NETLOGON_NEG_AUTH2_FLAGS,
- TEST_MACHINE_NAME, machine_password, &creds)) {
+ TEST_MACHINE_NAME, machine_password,
+ SEC_CHAN_BDC, &creds)) {
return False;
}