s3-netlogon: Fix NETLOGON credential chain. Fixes Bug #6099 (Windows 7 joining Samba3...
commita2362fc0ea283099c51e84d76f0ab5e1c2d6e6dc
authorGuenther Deschner <gd@samba.org>
Thu, 7 May 2009 19:52:10 +0000 (7 12:52 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 10 Jun 2009 14:17:53 +0000 (10 16:17 +0200)
tree77125220eb4328dc0455721ed6cb2fd278b8cbbe
parenta1ccafd259f642b3dfb901a320ba6f870e3551d8
s3-netlogon: Fix NETLOGON credential chain. Fixes Bug #6099 (Windows 7 joining Samba3) and probably many, many more.

Jeremy, with 9a5d5cc1db0ee60486f932e34cd7961b90c70a56 you alter the in negotiate
flags (which are a pointer to the out negotiate flags assigned in the generated
netlogon server code). So, while you wanted to just set the *out* negflags, you
did in fact reset the *in* negflags, effectively eliminating the
NETLOGON_NEG_STRONG_KEYS bit (formerly known as NETLOGON_NEG_128BIT) which then
caused creds_server_init() to generate 64bit creds instead of 128bit, causing
the whole chain to break. *Please* check.

Guenther
(cherry picked from commit 1f05472b9a27861f8e4b9b60410890b920f9d359)
source/rpc_server/srv_netlog_nt.c