diff options
-rw-r--r-- | source3/include/proto.h | 3 | ||||
-rw-r--r-- | source3/rpc_client/cli_samr.c | 9 | ||||
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 49fdda7075..72effa03c5 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1643,7 +1643,8 @@ BOOL samr_create_dom_alias(struct cli_state *cli, BOOL samr_set_aliasinfo(struct cli_state *cli, POLICY_HND *alias_pol, ALIAS_INFO_CTR *ctr); BOOL samr_open_group(struct cli_state *cli, - POLICY_HND *domain_pol, uint32 rid, + POLICY_HND *domain_pol, + uint32 flags, uint32 rid, POLICY_HND *group_pol); BOOL samr_add_groupmem(struct cli_state *cli, POLICY_HND *group_pol, uint32 rid); diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c index 9d3cbd22c2..4fc1c3f5a0 100644 --- a/source3/rpc_client/cli_samr.c +++ b/source3/rpc_client/cli_samr.c @@ -164,7 +164,7 @@ BOOL get_samr_query_groupmem(struct cli_state *cli, /* send open domain (on group sid) */ if (!samr_open_group(cli, pol_open_domain, - group_rid, + 0x00000010, group_rid, &pol_open_group)) { return False; @@ -267,7 +267,7 @@ BOOL get_samr_query_groupinfo(struct cli_state *cli, /* send open domain (on group sid) */ if (!samr_open_group(cli, pol_open_domain, - group_rid, &pol_open_group)) + 0x00000010, group_rid, &pol_open_group)) { return False; } @@ -1067,7 +1067,8 @@ BOOL samr_set_aliasinfo(struct cli_state *cli, do a SAMR Open Group ****************************************************************************/ BOOL samr_open_group(struct cli_state *cli, - POLICY_HND *domain_pol, uint32 rid, + POLICY_HND *domain_pol, + uint32 flags, uint32 rid, POLICY_HND *group_pol) { prs_struct data; @@ -1086,7 +1087,7 @@ BOOL samr_open_group(struct cli_state *cli, prs_init(&rdata, 0 , 4, SAFETY_MARGIN, True ); /* store the parameters */ - make_samr_q_open_group(&q_o, domain_pol, 0x0001, rid); + make_samr_q_open_group(&q_o, domain_pol, flags, rid); /* turn parameters into data stream */ samr_io_q_open_group("", &q_o, &data, 0); diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index ae3ef548c6..ac9da8b2ea 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -405,7 +405,7 @@ void cmd_sam_add_groupmem(struct client_info *info) /* connect to the domain */ res1 = res ? samr_open_group(smb_cli, &info->dom.samr_pol_open_domain, - group_rid, &group_pol) : False; + 0x0000001f, group_rid, &group_pol) : False; while (next_token(NULL, tmp, NULL, sizeof(tmp)) && res2 && res1) { |