From: Volker Lendecke Date: Sat, 6 May 2006 19:42:25 +0000 (+0000) Subject: r15476: Transfer the was_mapped flag from user_info to server_info also in auth_sam X-Git-Tag: samba-4.0.0alpha6~801^2~8485 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ab7e77bc7659a9707fb702b162fc4201f244c60;p=thirdparty%2Fsamba.git r15476: Transfer the was_mapped flag from user_info to server_info also in auth_sam and auth_domain. Thanks for Simo to point this out. Volker (This used to be commit 293b89dfb109d6e220ced433f025cf987aa1f500) --- diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c index 9360d28fac3..6360d10b692 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 94e4ec414b6..50ce9065fd9 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; }