r15476: Transfer the was_mapped flag from user_info to server_info also in auth_sam
authorVolker Lendecke <vlendec@samba.org>
Sat, 6 May 2006 19:42:25 +0000 (19:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:16:52 +0000 (11:16 -0500)
and auth_domain. Thanks for Simo to point this out.

Volker

source/auth/auth_domain.c
source/auth/auth_sam.c

index 9360d28fac3ab11c10e564844925b4ce58fb7051..6360d10b692dcb3cf75b36d6238d3f46a1c08581 100644 (file)
@@ -256,6 +256,10 @@ static NTSTATUS domain_client_validate(TALLOC_CTX *mem_ctx,
                                                server_info,
                                                &info3);
 
+               if (NT_STATUS_IS_OK(nt_status)) {
+                       (*server_info)->was_mapped |= user_info->was_mapped;
+               }
+
                netsamlogon_cache_store( user_info->smb_name, &info3 );
        }
 
index 94e4ec414b60fdf80e024f29d93464e12253e8df..50ce9065fd91eb112ab016d317c44ce78ecab695 100644 (file)
@@ -349,6 +349,8 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context,
                                 lm_sess_key.length);
        data_blob_free(&lm_sess_key);
 
+       (*server_info)->was_mapped |= user_info->was_mapped;
+
        return nt_status;
 }