summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-02-21 10:30:28 +0100
committerAndrew Bartlett <abartlet@samba.org>2011-02-22 16:20:11 +1100
commitd7fa34905223ebbf02dadcea0720062a30c3bbab (patch)
tree5b3a47f4a3d9dc26b25ee901fbcd72347ebeb516 /source3/include
parent2e69e894566d32001120d76d7ba58cdacb56d279 (diff)
downloadsamba-d7fa34905223ebbf02dadcea0720062a30c3bbab.tar.gz
samba-d7fa34905223ebbf02dadcea0720062a30c3bbab.tar.bz2
samba-d7fa34905223ebbf02dadcea0720062a30c3bbab.zip
s3:auth: change num_groups to from size_t to uint32_t
This will help with the change from UNIX_USER_TOKEN to security_unix_token metze
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/passdb.h2
-rw-r--r--source3/include/proto.h4
-rw-r--r--source3/include/smb.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h
index 915f2950f3..a04ccf061e 100644
--- a/source3/include/passdb.h
+++ b/source3/include/passdb.h
@@ -352,7 +352,7 @@ struct pdb_methods
TALLOC_CTX *mem_ctx,
struct samu *user,
struct dom_sid **pp_sids, gid_t **pp_gids,
- size_t *p_num_groups);
+ uint32_t *p_num_groups);
NTSTATUS (*set_unix_primary_group)(struct pdb_methods *methods,
TALLOC_CTX *mem_ctx,
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 31ebd37518..30774c7f18 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -952,7 +952,7 @@ int sys_connect(int fd, const struct sockaddr * addr);
bool getgroups_unix_user(TALLOC_CTX *mem_ctx, const char *user,
gid_t primary_gid,
- gid_t **ret_groups, size_t *p_ngroups);
+ gid_t **ret_groups, uint32_t *p_ngroups);
/* The following definitions come from lib/tallocmsg.c */
@@ -3814,7 +3814,7 @@ NTSTATUS pdb_enum_group_members(TALLOC_CTX *mem_ctx,
size_t *p_num_members);
NTSTATUS pdb_enum_group_memberships(TALLOC_CTX *mem_ctx, struct samu *user,
struct dom_sid **pp_sids, gid_t **pp_gids,
- size_t *p_num_groups);
+ uint32_t *p_num_groups);
NTSTATUS pdb_set_unix_primary_group(TALLOC_CTX *mem_ctx, struct samu *user);
NTSTATUS pdb_add_groupmem(TALLOC_CTX *mem_ctx, uint32_t group_rid,
uint32_t member_rid);
diff --git a/source3/include/smb.h b/source3/include/smb.h
index c01a156152..0776ed9656 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -205,7 +205,7 @@ struct lsa_name_info {
typedef struct unix_user_token {
uid_t uid;
gid_t gid;
- size_t ngroups;
+ uint32_t ngroups;
gid_t *groups;
} UNIX_USER_TOKEN;