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>
Tue, 14 Dec 2010 05:51:32 +0000 (16:51 +1100)
commit807c42ff71ec20c8ccb535c42f9d92a6bbdb4a8e
treeba1e449618f32300eb175a5d2a60a2b0b329dcfb
parent27ac2e277dde057e9af40f3c4500ae068f601b79
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
(cherry picked from commit b3c2df5e0d0ba1c17c3248bf9d238de3c54613ef)
source3/include/proto.h
source3/param/loadparm.c
source3/smbd/negprot.c