r752: Remove debugging hack (make sure the cleanup test account after we
authorAndrew Bartlett <abartlet@samba.org>
Sun, 16 May 2004 09:43:19 +0000 (09:43 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:53:48 +0000 (12:53 -0500)
leave) and test that the password change actually worked.

Andrew Bartlett

source/torture/rpc/netlogon.c

index 4ab88f08e1adf860b6d1054939ccafef090ddf29..42d79e154c8eed79edfb701f47e08e3fd86d038c 100644 (file)
@@ -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;
 }