1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

fix rpcclient querygroup command (from 2.2 and head)

This commit is contained in:
Simo Sorce 0001-01-01 00:00:00 +00:00
parent 0ff254264e
commit ea2154b269
3 changed files with 338 additions and 375 deletions

703
source/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -358,7 +358,7 @@ NTSTATUS cli_samr_query_userinfo(struct cli_state *cli, TALLOC_CTX *mem_ctx,
NTSTATUS cli_samr_query_groupinfo(struct cli_state *cli, TALLOC_CTX *mem_ctx,
POLICY_HND *group_pol, uint32 info_level,
GROUP_INFO_CTR *ctr)
GROUP_INFO_CTR **ctr)
{
prs_struct qbuf, rbuf;
SAMR_Q_QUERY_GROUPINFO q;
@ -383,11 +383,11 @@ NTSTATUS cli_samr_query_groupinfo(struct cli_state *cli, TALLOC_CTX *mem_ctx,
/* Unmarshall response */
r.ctr = ctr;
if (!samr_io_r_query_groupinfo("", &r, &rbuf, 0))
goto done;
*ctr = r.ctr;
/* Return output parameters */
result = r.status;

View File

@ -379,7 +379,7 @@ static NTSTATUS cmd_samr_query_group(struct cli_state *cli,
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
uint32 info_level = 1;
uint32 access_mask = MAXIMUM_ALLOWED_ACCESS;
GROUP_INFO_CTR group_ctr;
GROUP_INFO_CTR *group_ctr;
fstring server;
uint32 group_rid;
@ -427,7 +427,7 @@ static NTSTATUS cmd_samr_query_group(struct cli_state *cli,
goto done;
}
display_group_info_ctr(&group_ctr);
display_group_info_ctr(group_ctr);
done:
return result;