summaryrefslogtreecommitdiff
path: root/source3/auth/token_util.c
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/auth/token_util.c
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/auth/token_util.c')
-rw-r--r--source3/auth/token_util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index 4a702ef230..4f617c4201 100644
--- a/source3/auth/token_util.c
+++ b/source3/auth/token_util.c
@@ -693,8 +693,8 @@ NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username,
struct dom_sid *group_sids;
struct dom_sid unix_group_sid;
uint32_t num_group_sids;
- size_t num_gids;
- size_t i;
+ uint32_t num_gids;
+ uint32_t i;
if (!lookup_name_smbconf(tmp_ctx, username, LOOKUP_NAME_ALL,
NULL, NULL, &user_sid, &type)) {
@@ -710,7 +710,7 @@ NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username,
if (sid_check_is_in_our_domain(&user_sid)) {
bool ret;
- size_t pdb_num_group_sids;
+ uint32_t pdb_num_group_sids;
/* This is a passdb user, so ask passdb */
struct samu *sam_acct = NULL;
@@ -780,7 +780,7 @@ NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username,
*uid = sam_acct->unix_pw->pw_uid;
} else if (sid_check_is_in_unix_users(&user_sid)) {
- size_t getgroups_num_group_sids;
+ uint32_t getgroups_num_group_sids;
/* This is a unix user not in passdb. We need to ask nss
* directly, without consulting passdb */