s3-libads Default to NOT using the server-supplied principal from SPNEGO
authorAndrew Bartlett <abartlet@samba.org>
Sat, 4 Dec 2010 02:48:37 +0000 (13:48 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 14 Jun 2011 10:57:37 +0000 (12:57 +0200)
commitdeebcee272f7be2d22a92354156fccdd9b72656a
tree0d8fb8450b68f7c6aeed254c5ef781eb7cb0820a
parent03d62d2d9d4bf8f2834f4a09fb4fd4bb8be42c02
s3-libads Default to NOT using the server-supplied principal from SPNEGO

This principal is not supplied by later versions of windows, and using
it opens up some oportunities for man in the middle attacks.  (Becuase
it isn't the name being contacted that is verified with the KDC).

This adds the option 'client use spnego principal' to the smb.conf (as
used in Samba4) to control this behaivour.  As in Samba4, this
defaults to false.

Against 2008 servers, this will not change behaviour.  Against earlier
servers, it may cause a downgrade to NTLMSSP more often, in
environments where server names are not registered with the KDC as
servicePrincipalName values.

Andrew Bartlett
(cherry picked from commit bb7806283e71f3b8029aae0eed326b5847a36d83)
(cherry picked from commit e962852687f539678b7c38ed21f1b76c328821f2)
source3/include/proto.h
source3/libads/sasl.c
source3/libsmb/cliconnect.c
source3/param/loadparm.c