summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-29 17:37:27 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-29 17:37:27 +0000
commitd0fd259514a4cc4e7ec2b021ff68fe0e3fd1bf09 (patch)
treedca98444b7486e868d0174e4888859a853ff2abf /source3/rpc_parse
parent3d096e1b8f5a253b61cbfa6155b0a16a5394c847 (diff)
downloadsamba-d0fd259514a4cc4e7ec2b021ff68fe0e3fd1bf09.tar.gz
samba-d0fd259514a4cc4e7ec2b021ff68fe0e3fd1bf09.tar.bz2
samba-d0fd259514a4cc4e7ec2b021ff68fe0e3fd1bf09.zip
more reshuffling of enum groups code. more higher order functions.
(This used to be commit 497d4231723576390b10f5ea8704bd0af88d76ab)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_samr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c
index e111484676..74386e7f99 100644
--- a/source3/rpc_parse/parse_samr.c
+++ b/source3/rpc_parse/parse_samr.c
@@ -1904,7 +1904,8 @@ BOOL samr_io_r_open_group(char *desc, SAMR_R_OPEN_GROUP *r_u, prs_struct *ps, i
makes a GROUP_INFO1 structure.
********************************************************************/
BOOL make_samr_group_info1(GROUP_INFO1 *gr1,
- char *acct_name, char *acct_desc)
+ char *acct_name, char *acct_desc,
+ uint32 num_members)
{
int desc_len = acct_desc != NULL ? strlen(acct_desc) : 0;
int acct_len = acct_name != NULL ? strlen(acct_name) : 0;
@@ -1915,7 +1916,7 @@ BOOL make_samr_group_info1(GROUP_INFO1 *gr1,
make_uni_hdr(&(gr1->hdr_acct_name), acct_len);
gr1->unknown_1 = 0x3;
- gr1->unknown_2 = 0x3;
+ gr1->num_members = num_members;
make_uni_hdr(&(gr1->hdr_acct_desc), desc_len);
@@ -1941,7 +1942,7 @@ BOOL samr_io_group_info1(char *desc, GROUP_INFO1 *gr1, prs_struct *ps, int dept
smb_io_unihdr ("hdr_acct_name", &(gr1->hdr_acct_name) , ps, depth);
prs_uint32("unknown_1", ps, depth, &(gr1->unknown_1));
- prs_uint32("unknown_2", ps, depth, &(gr1->unknown_2));
+ prs_uint32("num_members", ps, depth, &(gr1->num_members));
smb_io_unihdr ("hdr_acct_desc", &(gr1->hdr_acct_desc) , ps, depth);