smbd: fix initial large PAC sess setup response
authorDavid Disseldorp <ddiss@samba.org>
Tue, 12 Feb 2013 10:58:06 +0000 (11:58 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 18 Feb 2013 08:53:40 +0000 (09:53 +0100)
commite28ec902a207655acab665c4cfabb1f2031fb24f
tree27613827a331fa5b611149881b00caf52b11cc49
parentd21280f983249038bf7efda4edc1b1eadaff546a
smbd: fix initial large PAC sess setup response

An oversize Kerberos security token may be split across multiple Session
Setup AndX requests when authenticating as a user who is a member of
many (~2000) groups.
In such a case the NativeOS, NativeLanMan & PrimaryDomain fields must be
sent with the NT_STATUS_MORE_PROCESSING_REQUIRED response. Otherwise
Windows clients may resend the same security token data in subsequent
session setup andX requests, as observed with Windows 7 and Server 2012.

This change fixes the SMB1 server only.

Fix bug #9658 - Session Setup AndX exchange fails with an oversize security
token.
source3/smbd/sesssetup.c