From a93c70154ac7126a7d6e638dcfdeef49d2966308 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 16 May 2004 09:43:19 +0000 Subject: [PATCH] r752: Remove debugging hack (make sure the cleanup test account after we leave) and test that the password change actually worked. Andrew Bartlett --- source/torture/rpc/netlogon.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/torture/rpc/netlogon.c b/source/torture/rpc/netlogon.c index 4ab88f08e1a..42d79e154c8 100644 --- a/source/torture/rpc/netlogon.c +++ b/source/torture/rpc/netlogon.c @@ -180,8 +180,6 @@ static BOOL leave_domain_bdc(TALLOC_CTX *mem_ctx) struct samr_DeleteUser d; NTSTATUS status; - return True; - d.in.handle = &join.acct_handle; d.out.handle = &join.acct_handle; @@ -1066,6 +1064,11 @@ static BOOL test_SetPassword(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) join.machine_password = password; + if (!test_SetupCredentials(p, mem_ctx, &creds)) { + printf("ServerPasswordSet failed to actually change the password\n"); + return False; + } + return True; }