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 /source3/rpc_client | |
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)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_samr.c | 9 |
1 files changed, 5 insertions, 4 deletions
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); |