]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r6110: Close handles on user creation. This allows easy mass creation of users with
authorVolker Lendecke <vlendec@samba.org>
Tue, 29 Mar 2005 06:45:10 +0000 (06:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:22 +0000 (10:56 -0500)
rpcclient.

Volker

source/rpcclient/cmd_samr.c

index f327004911ed4dc61b534254d4be4a6ecfe4c01f..bc002da71dd4a4d461f7a8a83ab406256dca9f93 100644 (file)
@@ -1279,6 +1279,15 @@ static NTSTATUS cmd_samr_create_dom_user(struct cli_state *cli,
        if (!NT_STATUS_IS_OK(result))
                goto done;
 
+       result = cli_samr_close(cli, mem_ctx, &user_pol);
+       if (!NT_STATUS_IS_OK(result)) goto done;
+
+       result = cli_samr_close(cli, mem_ctx, &domain_pol);
+       if (!NT_STATUS_IS_OK(result)) goto done;
+
+       result = cli_samr_close(cli, mem_ctx, &connect_pol);
+       if (!NT_STATUS_IS_OK(result)) goto done;
+
  done:
        return result;
 }