summaryrefslogtreecommitdiff
path: root/source3/auth/auth_ntlmssp.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-22 11:33:52 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-03 18:48:02 +1000
commit8a650243b336f5a85ff119aa40c7744542c005e7 (patch)
treefacc17ee6213efcfdb93db401d2ae02813e37b55 /source3/auth/auth_ntlmssp.c
parent35b309fa0cac9341f364243b03ebfcc80f74198e (diff)
downloadsamba-8a650243b336f5a85ff119aa40c7744542c005e7.tar.gz
samba-8a650243b336f5a85ff119aa40c7744542c005e7.tar.bz2
samba-8a650243b336f5a85ff119aa40c7744542c005e7.zip
s3-auth Move map to guest to directly after the check_password calls
This means we no longer need two different map to guest functions and have consistent logic with fewer layering violations. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/auth/auth_ntlmssp.c')
-rw-r--r--source3/auth/auth_ntlmssp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/auth/auth_ntlmssp.c b/source3/auth/auth_ntlmssp.c
index 61029bc95d..2157d355d2 100644
--- a/source3/auth/auth_ntlmssp.c
+++ b/source3/auth/auth_ntlmssp.c
@@ -145,6 +145,10 @@ static NTSTATUS auth_ntlmssp_check_password(struct ntlmssp_state *ntlmssp_state,
free_user_info(&user_info);
if (!NT_STATUS_IS_OK(nt_status)) {
+ nt_status = do_map_to_guest_server_info(nt_status,
+ &auth_ntlmssp_state->server_info,
+ auth_ntlmssp_state->ntlmssp_state->user,
+ auth_ntlmssp_state->ntlmssp_state->domain);
return nt_status;
}