summaryrefslogtreecommitdiff
path: root/source3/utils/ntlm_auth.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-12-09 21:23:33 +0100
committerStefan Metzmacher <metze@samba.org>2016-03-10 06:52:27 +0100
commit69a7ec794213e8adec5dcbd9ca45172df13292c1 (patch)
treed596b32e42f592ef172181a3c4b810790fc11af8 /source3/utils/ntlm_auth.c
parenta85a02b631609cd9c16e1048c62dbe9661128279 (diff)
downloadsamba-69a7ec794213e8adec5dcbd9ca45172df13292c1.tar.gz
s3:ntlm_auth: fix --use-cached-creds with ntlmssp-client-1
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11776 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/utils/ntlm_auth.c')
-rw-r--r--source3/utils/ntlm_auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c
index b90f9277c75..3cd48b7b0d4 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/utils/ntlm_auth.c
@@ -1212,7 +1212,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,
@@ -1271,7 +1271,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;
}