summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-03-18 04:09:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:06 -0500
commit2b41ba049e8b5d88d7dacbca28c6bd2c1f368f33 (patch)
tree23c159f0e5729a01b7d9d98c2e578be097144aaa /source4
parent928af7e6ff8f9051d0e7827ffea2dfa432692d63 (diff)
downloadsamba-2b41ba049e8b5d88d7dacbca28c6bd2c1f368f33.tar.gz
samba-2b41ba049e8b5d88d7dacbca28c6bd2c1f368f33.tar.bz2
samba-2b41ba049e8b5d88d7dacbca28c6bd2c1f368f33.zip
r5878: Be clear which machine name (We have one worksation, and one BDC) we
are doing logins with. Andrew Bartlett (This used to be commit b7297c44faea0ae8b38fb9a90c22c5be3c8f689f)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/samsync.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c
index 2f9b01ea10..cd39b625c3 100644
--- a/source4/torture/rpc/samsync.c
+++ b/source4/torture/rpc/samsync.c
@@ -30,7 +30,7 @@
#include "system/time.h"
#define TEST_MACHINE_NAME "samsynctest"
-#define TEST_MACHINE_NAME2 "samsynctest2"
+#define TEST_WKSTA_MACHINE_NAME "samsynctest2"
#define TEST_USER_NAME "samsynctestuser"
/*
@@ -522,10 +522,10 @@ static BOOL samsync_handle_user(TALLOC_CTX *mem_ctx, struct samsync_state *samsy
}
}
- nt_status = test_SamLogon(samsync_state->p, mem_ctx, samsync_state->creds,
+ nt_status = test_SamLogon(samsync_state->p_netlogon_wksta, mem_ctx, samsync_state->creds_netlogon_wksta,
domain,
username,
- TEST_MACHINE_NAME,
+ TEST_WKSTA_MACHINE_NAME,
lm_hash_p,
nt_hash_p,
&info3);
@@ -1135,7 +1135,7 @@ static BOOL test_DatabaseSync(struct samsync_state *samsync_state,
nt_status = test_SamLogon(samsync_state->p_netlogon_wksta, mem_ctx, samsync_state->creds_netlogon_wksta,
t->name,
username,
- TEST_MACHINE_NAME2,
+ TEST_WKSTA_MACHINE_NAME,
NULL,
&nt_hash,
NULL);
@@ -1156,7 +1156,7 @@ static BOOL test_DatabaseSync(struct samsync_state *samsync_state,
nt_status = test_SamLogon(samsync_state->p_netlogon_wksta, mem_ctx, samsync_state->creds_netlogon_wksta,
t->name,
username,
- TEST_MACHINE_NAME2,
+ TEST_WKSTA_MACHINE_NAME,
NULL,
&nt_hash,
NULL);
@@ -1307,7 +1307,7 @@ BOOL torture_rpc_samsync(void)
return False;
}
- join_ctx2 = torture_join_domain(TEST_MACHINE_NAME2, lp_workgroup(), ACB_WSTRUST,
+ join_ctx2 = torture_join_domain(TEST_WKSTA_MACHINE_NAME, lp_workgroup(), ACB_WSTRUST,
&machine_password2);
if (!join_ctx2) {
printf("Failed to join as member\n");
@@ -1445,7 +1445,7 @@ BOOL torture_rpc_samsync(void)
DCERPC_NETLOGON_UUID,
DCERPC_NETLOGON_VERSION,
lp_workgroup(),
- TEST_MACHINE_NAME2,
+ TEST_WKSTA_MACHINE_NAME,
machine_password2);
if (!NT_STATUS_IS_OK(status)) {