summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-12 11:17:53 +0100
committerGünther Deschner <gd@samba.org>2008-02-12 11:17:53 +0100
commit0ed6c373f1dcb7ad6813b43cf614ebb69b4cb518 (patch)
tree86c36e9f4b179e3109576c1be095a03e6304c97b /source3/rpcclient
parentcf20a28dd6c443cac03c5ab0f640e6dc7aa10971 (diff)
downloadsamba-0ed6c373f1dcb7ad6813b43cf614ebb69b4cb518.tar.gz
samba-0ed6c373f1dcb7ad6813b43cf614ebb69b4cb518.tar.bz2
samba-0ed6c373f1dcb7ad6813b43cf614ebb69b4cb518.zip
Use rpccli_samr_EnumDomainGroups in rpcclient.
Guenther (This used to be commit e76c350dabae421c56c92decf413161e54549c10)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_samr.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index 5ee28c6336..3d6866e57e 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -898,7 +898,7 @@ static NTSTATUS cmd_samr_enum_dom_groups(struct rpc_pipe_client *cli,
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
uint32 start_idx, size, num_dom_groups, i;
uint32 access_mask = MAXIMUM_ALLOWED_ACCESS;
- struct acct_info *dom_groups;
+ struct samr_SamArray *dom_groups = NULL;
bool got_connect_pol = False, got_domain_pol = False;
if ((argc < 1) || (argc > 2)) {
@@ -938,17 +938,19 @@ static NTSTATUS cmd_samr_enum_dom_groups(struct rpc_pipe_client *cli,
size = 0xffff;
do {
- result = rpccli_samr_enum_dom_groups(
- cli, mem_ctx, &domain_pol, &start_idx, size,
- &dom_groups, &num_dom_groups);
-
+ result = rpccli_samr_EnumDomainGroups(cli, mem_ctx,
+ &domain_pol,
+ &start_idx,
+ &dom_groups,
+ size,
+ &num_dom_groups);
if (NT_STATUS_IS_OK(result) ||
NT_STATUS_V(result) == NT_STATUS_V(STATUS_MORE_ENTRIES)) {
for (i = 0; i < num_dom_groups; i++)
printf("group:[%s] rid:[0x%x]\n",
- dom_groups[i].acct_name,
- dom_groups[i].rid);
+ dom_groups->entries[i].name.string,
+ dom_groups->entries[i].idx);
}
} while (NT_STATUS_V(result) == NT_STATUS_V(STATUS_MORE_ENTRIES));