diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-03-29 06:45:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:22 -0500 |
commit | be70aa761406da12c1332b31ab1c9ccd2a561538 (patch) | |
tree | aff0b4c39759e1ad91c0b6536ce22e1ad5d76d06 /source3 | |
parent | fbc611f431db443c23486f768ca5e2bc4db95c24 (diff) | |
download | samba-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.c | 9 |
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; } |