diff options
Diffstat (limited to 'source3/auth/auth_util.c')
-rw-r--r-- | source3/auth/auth_util.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 32f9d13aac..16fa421f8b 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -498,20 +498,14 @@ NTSTATUS create_local_token(struct auth_serversupplied_info *server_info) * the nt token. */ - if (!uid_to_unix_users_sid(server_info->utok.uid, &tmp_sid)) { - DEBUG(1,("create_local_token: Failed to create SID " - "for uid %u!\n", (unsigned int)server_info->utok.uid)); - } + uid_to_unix_users_sid(server_info->utok.uid, &tmp_sid); + add_sid_to_array_unique(server_info->ptok, &tmp_sid, &server_info->ptok->user_sids, &server_info->ptok->num_sids); for ( i=0; i<server_info->utok.ngroups; i++ ) { - if (!gid_to_unix_groups_sid( server_info->utok.groups[i], &tmp_sid ) ) { - DEBUG(1,("create_local_token: Failed to create SID " - "for gid %u!\n", (unsigned int)server_info->utok.groups[i])); - continue; - } + gid_to_unix_groups_sid(server_info->utok.groups[i], &tmp_sid); add_sid_to_array_unique(server_info->ptok, &tmp_sid, &server_info->ptok->user_sids, &server_info->ptok->num_sids); |