diff options
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/server_info.c | 2 | ||||
-rw-r--r-- | source3/auth/token_util.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source3/auth/server_info.c b/source3/auth/server_info.c index 0f62983560..e218ca9f7f 100644 --- a/source3/auth/server_info.c +++ b/source3/auth/server_info.c @@ -311,7 +311,7 @@ NTSTATUS samu_to_SamInfo3(TALLOC_CTX *mem_ctx, const struct dom_sid *group_sid; struct dom_sid domain_sid; struct dom_sid *group_sids; - size_t num_group_sids = 0; + uint32_t num_group_sids = 0; const char *tmp; gid_t *gids; NTSTATUS status; 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 */ |