summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-05-16 09:43:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:53:48 -0500
commit6703be3ef027a12232cb8de2b64b51af5dd9bbde (patch)
tree32113db8da5509ff0b47f3c451e1fbb3e6ab4b49
parent582ef8ea88dfe4f3878928ade78aff91b1c12d88 (diff)
downloadsamba-6703be3ef027a12232cb8de2b64b51af5dd9bbde.tar.gz
samba-6703be3ef027a12232cb8de2b64b51af5dd9bbde.tar.bz2
samba-6703be3ef027a12232cb8de2b64b51af5dd9bbde.zip
r752: Remove debugging hack (make sure the cleanup test account after we
leave) and test that the password change actually worked. Andrew Bartlett (This used to be commit a93c70154ac7126a7d6e638dcfdeef49d2966308)
-rw-r--r--source4/torture/rpc/netlogon.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c
index 4ab88f08e1..42d79e154c 100644
--- a/source4/torture/rpc/netlogon.c
+++ b/source4/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;
}