diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-02-21 10:30:28 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-02-22 16:20:11 +1100 |
commit | d7fa34905223ebbf02dadcea0720062a30c3bbab (patch) | |
tree | 5b3a47f4a3d9dc26b25ee901fbcd72347ebeb516 /source3/auth | |
parent | 2e69e894566d32001120d76d7ba58cdacb56d279 (diff) | |
download | samba-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')
-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 */ |