diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-05-28 16:16:53 -0400 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-06-07 22:53:07 +1000 |
commit | aa1a3cbad2ed62d5b59c48a6e7726eef4776f461 (patch) | |
tree | 987894b17021900376d04441154f99007c472e48 /source3/auth/auth_util.c | |
parent | e6456df1489ec964445dfd6f009f9f75377b3d11 (diff) | |
download | samba-aa1a3cbad2ed62d5b59c48a6e7726eef4776f461.tar.gz samba-aa1a3cbad2ed62d5b59c48a6e7726eef4776f461.tar.bz2 samba-aa1a3cbad2ed62d5b59c48a6e7726eef4776f461.zip |
s3:auth create nt token from info3 directly
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/auth/auth_util.c')
-rw-r--r-- | source3/auth/auth_util.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 3591271157..ea95f33a86 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -463,7 +463,6 @@ NTSTATUS create_local_token(struct auth_serversupplied_info *server_info) NTSTATUS status; size_t i; struct dom_sid tmp_sid; - struct dom_sid user_sid; /* * If winbind is not around, we can not make much use of the SIDs the @@ -482,17 +481,11 @@ NTSTATUS create_local_token(struct auth_serversupplied_info *server_info) &server_info->ptok); } else { - sid_compose(&user_sid, - server_info->info3->base.domain_sid, - server_info->info3->base.rid); - - server_info->ptok = create_local_nt_token( - server_info, - &user_sid, - server_info->guest, - server_info->num_sids, server_info->sids); - status = server_info->ptok ? - NT_STATUS_OK : NT_STATUS_NO_SUCH_USER; + status = create_local_nt_token_from_info3(server_info, + server_info->guest, + server_info->info3, + &server_info->extra, + &server_info->ptok); } if (!NT_STATUS_IS_OK(status)) { |