s4/libcli: do not use netbios name in NTLMv2 blobs w/o spnego
authorChristian Ambach <christian.ambach@de.ibm.com>
Thu, 7 Apr 2011 12:05:04 +0000 (14:05 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Apr 2011 00:19:08 +0000 (02:19 +0200)
commit29c0c37691da10bf061ba90a5b31482bda2fa486
tree1aa53e189e0306c41172b57bd320eb873293122b
parent96a49d23a4caebefcea66cfb855fadbae12ccf7c
s4/libcli: do not use netbios name in NTLMv2 blobs w/o spnego

I have seen domain controllers rejecting NTLMv2 blobs presented to
NetrLogonSamLogonEx with LOGON_FAILURE when the MsvAvNbComputerName
was a FQDN or an IP address

I have not seen this field in NTLMv2 blobs send by Windows clients
when extended security was not available, so omitting the field
makes Samba similar to Windows.

This prevents errors with some smbtorture testcases that disable
spnego and when a target name is specified that is not a valid
netbios name.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 14 02:19:08 CEST 2011 on sn-devel-104
source4/libcli/smb_composite/sesssetup.c