From 099c3d532736d5836d0d5d3236cd1e502897076c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 3 Oct 2005 23:46:21 +0000 Subject: r10697: Change the torture join code to return a credentials structure, as that is what most of the callers want anyway. Remove and re-add the account for the torture case, rather than just modify it. Test with a user account (needs work to change the password). Andrew Bartlett (This used to be commit 38bebef02454164cbe882347d80e03abee656205) --- source4/torture/rpc/netlogon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/torture/rpc/netlogon.c') diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 966a0f2e5b..185a032b3c 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -1358,17 +1358,20 @@ BOOL torture_rpc_netlogon(void) TALLOC_CTX *mem_ctx; BOOL ret = True; struct test_join *join_ctx; + struct cli_credentials *machine_credentials; mem_ctx = talloc_init("torture_rpc_netlogon"); join_ctx = torture_join_domain(TEST_MACHINE_NAME, ACB_SVRTRUST, - &machine_password); + &machine_credentials); if (!join_ctx) { talloc_free(mem_ctx); printf("Failed to join as BDC\n"); return False; } + machine_password = cli_credentials_get_password(machine_credentials); + status = torture_rpc_connection(mem_ctx, &p, DCERPC_NETLOGON_NAME, DCERPC_NETLOGON_UUID, -- cgit