svn commit: samba r6484 - in branches/SAMBA_4_0/source/auth/ntlmssp: .

metze at samba.org metze at samba.org
Tue Apr 26 07:21:35 GMT 2005


Author: metze
Date: 2005-04-26 07:21:34 +0000 (Tue, 26 Apr 2005)
New Revision: 6484

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6484

Log:
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
Modified:
   branches/SAMBA_4_0/source/auth/ntlmssp/ntlmssp_client.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/ntlmssp/ntlmssp_client.c
===================================================================
--- branches/SAMBA_4_0/source/auth/ntlmssp/ntlmssp_client.c	2005-04-26 07:10:43 UTC (rev 6483)
+++ branches/SAMBA_4_0/source/auth/ntlmssp/ntlmssp_client.c	2005-04-26 07:21:34 UTC (rev 6484)
@@ -177,6 +177,7 @@
 	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 @@
 		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) {



More information about the samba-cvs mailing list