From a09593c37a307388c0fed175d70c896a9d2d47db Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 26 Apr 2005 07:21:34 +0000 Subject: r6484: fix NTLMSSP client against w2k and w2k3 if we use lm_response = data_blob(NULL, 0); we got NT_STATUS_INVALID_PARAMETER (abartlet: we should maybe also give this error in our server code) metze (This used to be commit be5e301442c442a37bb6756d12b9f1452d634a17) --- source4/auth/ntlmssp/ntlmssp_client.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/auth/ntlmssp/ntlmssp_client.c') diff --git a/source4/auth/ntlmssp/ntlmssp_client.c b/source4/auth/ntlmssp/ntlmssp_client.c index e249fb66f4..df5cbab524 100644 --- a/source4/auth/ntlmssp/ntlmssp_client.c +++ b/source4/auth/ntlmssp/ntlmssp_client.c @@ -177,6 +177,7 @@ NTSTATUS ntlmssp_client_challenge(struct gensec_security *gensec_security, password = cli_credentials_get_password(gensec_security->credentials); if (!password) { + static const uint8_t zero[1]; static const uint8_t zeros[16]; /* do nothing - blobs are zero length */ @@ -184,6 +185,9 @@ NTSTATUS ntlmssp_client_challenge(struct gensec_security *gensec_security, session_key = data_blob_talloc(gensec_ntlmssp_state, zeros, 16); lm_session_key = data_blob_talloc(gensec_ntlmssp_state, zeros, 16); + lm_response = data_blob_talloc(gensec_ntlmssp_state, zero, 1); + nt_response = data_blob(NULL, 0); + /* not doing NLTM2 without a password */ gensec_ntlmssp_state->neg_flags &= ~NTLMSSP_NEGOTIATE_NTLM2; } else if (gensec_ntlmssp_state->use_ntlmv2) { -- cgit