diff options
author | Luke Leighton <lkcl@samba.org> | 1998-12-04 22:00:39 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-12-04 22:00:39 +0000 |
commit | 8891f8c6b9aacfa935419662c7106f5d98843af1 (patch) | |
tree | ddafe36680e72a6ef1598b0007506dd5874e14ff | |
parent | 89c56492a86fb02b2045182490b93f17a475f03d (diff) | |
download | samba-8891f8c6b9aacfa935419662c7106f5d98843af1.tar.gz samba-8891f8c6b9aacfa935419662c7106f5d98843af1.tar.bz2 samba-8891f8c6b9aacfa935419662c7106f5d98843af1.zip |
fixing "addgroupmem" and "enumgroups -m" commands, samr_open_group()
needed a flags fields as you get 0x0000 0010 and 0x0000 001f unknown
values for different purposes, no-one's going to tell us what they
are and i don't CARE!
(This used to be commit aabb4b3bc5119ef317b5697ae6fcf5d36c2d474e)
-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) { |