summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-29 19:31:32 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-29 19:31:32 +0000
commit243feaa08c43cc7dbca155cba5f085697e968c8d (patch)
tree64c7e9c8843550b991691f18f6d052241e33de1f /source3/include
parenta8b8b8ac3b18437aee6e91749f0e76ef3a04d030 (diff)
downloadsamba-243feaa08c43cc7dbca155cba5f085697e968c8d.tar.gz
samba-243feaa08c43cc7dbca155cba5f085697e968c8d.tar.bz2
samba-243feaa08c43cc7dbca155cba5f085697e968c8d.zip
rewrite rpcclient sam enum user code to use higher order functions.
(This used to be commit b794ff213009fbcf6a4767e3361501291cdc065d)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/ntdomain.h4
-rw-r--r--source3/include/proto.h13
2 files changed, 13 insertions, 4 deletions
diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h
index 87a438841b..3d8bdcba29 100644
--- a/source3/include/ntdomain.h
+++ b/source3/include/ntdomain.h
@@ -154,5 +154,9 @@ struct acct_info
#define GROUP_INFO_FN(fn) void (*fn)(char*, DOM_SID*, uint32, GROUP_INFO_CTR *)
#define GROUP_MEM_FN(fn) void(*fn)(char*, DOM_SID*, uint32, char*, uint32, uint32*, char**, uint32*)
+#define USER_FN(fn) void (*fn)(char*, DOM_SID*, uint32, char*)
+#define USER_INFO_FN(fn) void (*fn)(char*, DOM_SID*, uint32, SAM_USER_INFO_21 *)
+#define USER_MEM_FN(fn) void(*fn)(char*, DOM_SID*, uint32, char*, uint32, uint32*, char**, uint32*)
+
#endif /* _NT_DOMAIN_H */
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 5a47265ad1..7178bcde63 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -3224,17 +3224,22 @@ void cmd_sam_add_groupmem(struct client_info *info);
void cmd_sam_create_dom_group(struct client_info *info);
uint32 sam_query_usergroups(struct cli_state *cli, uint16 fnum,
POLICY_HND *pol_dom,
+ char *domain,
+ DOM_SID *sid,
uint32 user_rid,
+ char *user_name,
uint32 *num_groups,
DOM_GID **gid,
char ***name,
- uint32 **type);
+ uint32 **type,
+ USER_MEM_FN(usr_mem));
int msrpc_sam_enum_users(struct client_info *info,
struct acct_info **sam,
uint32 *num_sam_entries,
- BOOL request_user_info,
- BOOL request_group_info,
- BOOL request_alias_info);
+ USER_FN(usr_fn),
+ USER_INFO_FN(usr_inf_fn),
+ USER_MEM_FN(usr_grp_fn),
+ USER_MEM_FN(usr_als_fn));
void cmd_sam_enum_users(struct client_info *info);
void cmd_sam_query_user(struct client_info *info);
void cmd_sam_query_dispinfo(struct client_info *info);