[SCM] Samba Shared Repository - branch v3-2-test updated -
initial-v3-2-test-2101-ge76c350
Günther Deschner
gd at samba.org
Tue Feb 12 10:19:15 GMT 2008
The branch, v3-2-test has been updated
via e76c350dabae421c56c92decf413161e54549c10 (commit)
from d034d34faaced1d349ff9d36fcddf9533e402582 (commit)
http://gitweb.samba.org/?samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit e76c350dabae421c56c92decf413161e54549c10
Author: Günther Deschner <gd at samba.org>
Date: Tue Feb 12 11:17:53 2008 +0100
Use rpccli_samr_EnumDomainGroups in rpcclient.
Guenther
-----------------------------------------------------------------------
Summary of changes:
source/rpcclient/cmd_samr.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/rpcclient/cmd_samr.c b/source/rpcclient/cmd_samr.c
index 5ee28c6..3d6866e 100644
--- a/source/rpcclient/cmd_samr.c
+++ b/source/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));
--
Samba Shared Repository
More information about the samba-cvs
mailing list