From: Volker Lendecke Date: Tue, 29 Mar 2005 06:45:10 +0000 (+0000) Subject: r6110: Close handles on user creation. This allows easy mass creation of users with X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5017 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a56a4fd3e09361e44c8ff4666bd6091db0b945d;p=thirdparty%2Fsamba.git r6110: Close handles on user creation. This allows easy mass creation of users with rpcclient. Volker --- diff --git a/source/rpcclient/cmd_samr.c b/source/rpcclient/cmd_samr.c index f327004911e..bc002da71dd 100644 --- a/source/rpcclient/cmd_samr.c +++ b/source/rpcclient/cmd_samr.c @@ -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; }