summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/samlogon.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/samlogon.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/samlogon.c')
-rw-r--r--source4/torture/rpc/samlogon.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/torture/rpc/samlogon.c b/source4/torture/rpc/samlogon.c
index d75165ac43..56631a4a16 100644
--- a/source4/torture/rpc/samlogon.c
+++ b/source4/torture/rpc/samlogon.c
@@ -1232,7 +1232,7 @@ BOOL torture_rpc_samlogon(void)
join_ctx = torture_join_domain(TEST_MACHINE_NAME, lp_workgroup(), ACB_WSTRUST,
&machine_password);
if (!join_ctx) {
- printf("Failed to join as BDC\n");
+ printf("Failed to join as Workstation\n");
return False;
}
@@ -1247,7 +1247,7 @@ BOOL torture_rpc_samlogon(void)
* with INTERNAL_ERROR */
b.flags &= ~DCERPC_AUTH_OPTIONS;
- b.flags |= DCERPC_SCHANNEL_BDC | DCERPC_SIGN | DCERPC_SCHANNEL_128;
+ b.flags |= DCERPC_SCHANNEL_WORKSTATION | DCERPC_SIGN | DCERPC_SCHANNEL_128;
status = dcerpc_pipe_connect_b(&p, &b,
DCERPC_NETLOGON_UUID,
@@ -1278,7 +1278,8 @@ BOOL torture_rpc_samlogon(void)
for (i=0; i < ARRAY_SIZE(credential_flags); i++) {
if (!test_SetupCredentials2(p, mem_ctx, credential_flags[i],
- TEST_MACHINE_NAME, machine_password, creds)) {
+ TEST_MACHINE_NAME, machine_password,
+ SEC_CHAN_WKSTA, creds)) {
return False;
}