summaryrefslogtreecommitdiff
path: root/source/auth/auth_domain.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/auth/auth_domain.c')
-rw-r--r--source/auth/auth_domain.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/auth/auth_domain.c b/source/auth/auth_domain.c
index c91cbf7af11..6360d10b692 100644
--- a/source/auth/auth_domain.c
+++ b/source/auth/auth_domain.c
@@ -251,12 +251,15 @@ static NTSTATUS domain_client_validate(TALLOC_CTX *mem_ctx,
}
} else {
nt_status = make_server_info_info3(mem_ctx,
- user_info->internal_username,
user_info->smb_name,
domain,
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 );
}