s3-smbd Don't send SPNEGO principal (rfc4178 hint) by default
authorAndrew Bartlett <abartlet@samba.org>
Sat, 4 Dec 2010 03:11:57 +0000 (14:11 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Dec 2010 05:08:30 +0000 (16:08 +1100)
commitb3c2df5e0d0ba1c17c3248bf9d238de3c54613ef
tree4ea83abb3d8669287b69658ec3a6fcde6cad29d6
parentbb7806283e71f3b8029aae0eed326b5847a36d83
s3-smbd Don't send SPNEGO principal (rfc4178 hint) by default

This patch, based on the suggestion by Goldberg, Neil R. <ngoldber@mitre.org>
turns off the sending of the principal in the negprot by default, matching
Windows 2008 behaviour.

This slowly works us back from this hack, which from an RFC
perspective was never the right thing to do in the first place, but we
traditionally follow windows behaviour.  It also discourages client
implmentations from relying on it, as if they do they are more open to
man-in-the-middle attacks.

Andrew Bartlett
source3/include/proto.h
source3/param/loadparm.c
source3/smbd/negprot.c