diff options
author | Luke Leighton <lkcl@samba.org> | 1999-10-29 17:37:27 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-10-29 17:37:27 +0000 |
commit | d0fd259514a4cc4e7ec2b021ff68fe0e3fd1bf09 (patch) | |
tree | dca98444b7486e868d0174e4888859a853ff2abf /source3/include | |
parent | 3d096e1b8f5a253b61cbfa6155b0a16a5394c847 (diff) | |
download | samba-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/include')
-rw-r--r-- | source3/include/proto.h | 11 | ||||
-rw-r--r-- | source3/include/rpc_samr.h | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 74d81ad7f1..82984e8f92 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -2551,7 +2551,8 @@ BOOL make_samr_q_open_group(SAMR_Q_OPEN_GROUP *q_c, BOOL samr_io_q_open_group(char *desc, SAMR_Q_OPEN_GROUP *q_u, prs_struct *ps, int depth); BOOL samr_io_r_open_group(char *desc, SAMR_R_OPEN_GROUP *r_u, prs_struct *ps, int depth); BOOL make_samr_group_info1(GROUP_INFO1 *gr1, - char *acct_name, char *acct_desc); + char *acct_name, char *acct_desc, + uint32 num_members); BOOL samr_io_group_info1(char *desc, GROUP_INFO1 *gr1, prs_struct *ps, int depth); BOOL make_samr_group_info4(GROUP_INFO4 *gr4, const char *acct_desc); BOOL samr_io_group_info4(char *desc, GROUP_INFO4 *gr4, prs_struct *ps, int depth); @@ -3251,8 +3252,9 @@ BOOL sam_query_groupmem(struct cli_state *cli, uint16 fnum, uint32 msrpc_sam_enum_groups(struct client_info *info, struct acct_info **sam, uint32 *num_sam_entries, - void(*grp_mem_fn)(uint32, char*, uint32, uint32*, char**, uint32*), - BOOL request_group_info); + void (*grp_fn)(char*, DOM_SID*, uint32, char*), + void (*grp_inf_fn)(char*, DOM_SID*, uint32, GROUP_INFO_CTR *), + void(*grp_mem_fn)(char*, DOM_SID*, uint32, char*, uint32, uint32*, char**, uint32*)); void cmd_sam_enum_groups(struct client_info *info); /*The following definitions come from rpcclient/cmd_srvsvc.c */ @@ -3340,6 +3342,9 @@ void display_alias_rid_info(FILE *out_hnd, enum action_type action, void display_group_members(FILE *out_hnd, enum action_type action, uint32 num_mem, char **name, uint32 *type); void display_group_info1(FILE *out_hnd, enum action_type action, GROUP_INFO1 *info1); +void display_group_info4(FILE *out_hnd, enum action_type action, GROUP_INFO4 *info4); +void display_group_info_ctr(FILE *out_hnd, enum action_type action, + GROUP_INFO_CTR *ctr); void display_group_rid_info(FILE *out_hnd, enum action_type action, uint32 num_gids, DOM_GID *gid); void display_alias_name_info(FILE *out_hnd, enum action_type action, diff --git a/source3/include/rpc_samr.h b/source3/include/rpc_samr.h index afe104a93a..87fc17cda9 100644 --- a/source3/include/rpc_samr.h +++ b/source3/include/rpc_samr.h @@ -944,7 +944,7 @@ typedef struct samr_group_info1 UNIHDR hdr_acct_name; uint32 unknown_1; /* 0x0000 0003 - number of group members? */ - uint32 unknown_2; /* 0x0000 0001 - number of group members? */ + uint32 num_members; /* 0x0000 0001 - number of group members? */ UNIHDR hdr_acct_desc; |