summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/testjoin.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/source4/torture/rpc/testjoin.c b/source4/torture/rpc/testjoin.c
index d0b1e5c9bf..66cb4a42c1 100644
--- a/source4/torture/rpc/testjoin.c
+++ b/source4/torture/rpc/testjoin.c
@@ -319,21 +319,6 @@ struct test_join *torture_join_domain(const char *machine_name,
libnet_r->in.recreate_account = True;
status = libnet_JoinDomain(libnet_ctx, libnet_r, libnet_r);
- if (NT_STATUS_EQUAL(status, NT_STATUS_USER_EXISTS)) {
- struct samr_DeleteUser d;
- d.in.user_handle = libnet_r->out.user_handle;
- d.out.user_handle = libnet_r->out.user_handle;
-
- /* Delete machine account */
- status = dcerpc_samr_DeleteUser(libnet_r->out.samr_pipe, tj, &d);
- if (!NT_STATUS_IS_OK(status)) {
- printf("Delete of machine account failed\n");
- } else {
- printf("Delete of machine account was successful.\n");
- }
- status = libnet_JoinDomain(libnet_ctx, libnet_r, libnet_r);
- }
-
if (!NT_STATUS_IS_OK(status)) {
if (libnet_r->out.error_string) {
DEBUG(0, ("Domain join failed - %s.\n", libnet_r->out.error_string));