summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-05-22 16:48:01 +0200
committerGünther Deschner <gd@samba.org>2009-05-25 13:52:50 +0200
commit86d087fccc30a82cb1fe3a71d0353634496e72c4 (patch)
treeb26b5fc50478369706e1a5d8b57385c7c04706db /source3/rpcclient
parent2d689ad9fc6ff86c70db24c5d57429ddfd0a948e (diff)
downloadsamba-86d087fccc30a82cb1fe3a71d0353634496e72c4.tar.gz
samba-86d087fccc30a82cb1fe3a71d0353634496e72c4.tar.bz2
samba-86d087fccc30a82cb1fe3a71d0353634496e72c4.zip
s3-rpcclient: use get_domain_handle() fn in enum domain users & groups.
Guenther
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_samr.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index 96484f0982..e074544518 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -813,12 +813,11 @@ static NTSTATUS cmd_samr_enum_dom_users(struct rpc_pipe_client *cli,
/* Get domain policy handle */
- result = rpccli_samr_OpenDomain(cli, mem_ctx,
- &connect_pol,
- access_mask,
- &domain_sid,
- &domain_pol);
-
+ result = get_domain_handle(cli, mem_ctx, "domain",
+ &connect_pol,
+ access_mask,
+ &domain_sid,
+ &domain_pol);
if (!NT_STATUS_IS_OK(result))
goto done;
@@ -888,12 +887,11 @@ static NTSTATUS cmd_samr_enum_dom_groups(struct rpc_pipe_client *cli,
/* Get domain policy handle */
- result = rpccli_samr_OpenDomain(cli, mem_ctx,
- &connect_pol,
- access_mask,
- &domain_sid,
- &domain_pol);
-
+ result = get_domain_handle(cli, mem_ctx, "domain",
+ &connect_pol,
+ access_mask,
+ &domain_sid,
+ &domain_pol);
if (!NT_STATUS_IS_OK(result))
goto done;