mirror of
https://github.com/samba-team/samba.git
synced 2025-02-08 05:57:51 +03:00
s3:ntlm_auth: fix --use-cached-creds with ntlmssp-client-1
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11776 BUG: https://bugzilla.samba.org/show_bug.cgi?id=11804 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> (cherry picked from commit 69a7ec794213e8adec5dcbd9ca45172df13292c1)
This commit is contained in:
parent
33f7f44c70
commit
8800015770
@ -1207,7 +1207,7 @@ static NTSTATUS do_ccache_ntlm_auth(DATA_BLOB initial_msg, DATA_BLOB challenge_m
|
||||
}
|
||||
|
||||
winbindd_free_response(&wb_response);
|
||||
return NT_STATUS_MORE_PROCESSING_REQUIRED;
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
static void manage_client_ntlmssp_request(enum stdio_helper_mode stdio_helper_mode,
|
||||
@ -1266,7 +1266,7 @@ static void manage_client_ntlmssp_request(enum stdio_helper_mode stdio_helper_mo
|
||||
DATA_BLOB empty_blob = data_blob_null;
|
||||
|
||||
nt_status = do_ccache_ntlm_auth(empty_blob, empty_blob, NULL);
|
||||
if (!NT_STATUS_EQUAL(nt_status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
|
||||
if (!NT_STATUS_IS_OK(nt_status)) {
|
||||
/* failed to use cached creds */
|
||||
use_cached_creds = False;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user