summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-05-06 19:42:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:52 -0500
commit5ab7e77bc7659a9707fb702b162fc4201f244c60 (patch)
treeb51c247ee9f26b9a2d3cf814474c654f3ea3b61f /source3
parentdc9f30b8b0ace8d6e2c8c0cbed537fde68d1556a (diff)
downloadsamba-5ab7e77bc7659a9707fb702b162fc4201f244c60.tar.gz
samba-5ab7e77bc7659a9707fb702b162fc4201f244c60.tar.bz2
samba-5ab7e77bc7659a9707fb702b162fc4201f244c60.zip
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)
Diffstat (limited to 'source3')
-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;
}