summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-03-29 06:45:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:22 -0500
commitbe70aa761406da12c1332b31ab1c9ccd2a561538 (patch)
treeaff0b4c39759e1ad91c0b6536ce22e1ad5d76d06 /source3
parentfbc611f431db443c23486f768ca5e2bc4db95c24 (diff)
downloadsamba-be70aa761406da12c1332b31ab1c9ccd2a561538.tar.gz
samba-be70aa761406da12c1332b31ab1c9ccd2a561538.tar.bz2
samba-be70aa761406da12c1332b31ab1c9ccd2a561538.zip
r6110: Close handles on user creation. This allows easy mass creation of users with
rpcclient. Volker (This used to be commit 1a56a4fd3e09361e44c8ff4666bd6091db0b945d)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_samr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index f327004911..bc002da71d 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/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;
}