summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/auth/auth_domain.c4
-rw-r--r--source3/auth/auth_sam.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c
index 9360d28fac..6360d10b69 100644
--- a/source3/auth/auth_domain.c
+++ b/source3/auth/auth_domain.c
@@ -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 );
}
diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c
index 94e4ec414b..50ce9065fd 100644
--- a/source3/auth/auth_sam.c
+++ b/source3/auth/auth_sam.c
@@ -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;
}