s4-librpc: Fix NETLOGON credential chain with Windows 2008.
authorAndreas Schneider <asn@samba.org>
Mon, 12 Dec 2011 18:28:49 +0000 (19:28 +0100)
committerAndreas Schneider <asn@samba.org>
Wed, 14 Dec 2011 12:41:28 +0000 (13:41 +0100)
commit17d124490b79cf14e53263eaef333756e18f7ff2
tree4522c0ad814ccd4cdffd91074f84bfda97577a0a
parentffa996e4797af1a38c484894fc03528f6fa73496
s4-librpc: Fix NETLOGON credential chain with Windows 2008.

Windows Server 2008 returns NT_STATUS_DOWNGRADE_DETECTED if you call
netrServerAuthenticate2 during a domain join without setting the strong
keys flag (128bit crypto).

Only for NT4 we need to do a downgrade to the returned negotiate flags.

See also 0970369ca0cb9ae465cff40e5c75739824daf1d0.
librpc/rpc/rpc_common.h
source4/librpc/rpc/dcerpc_schannel.c
source4/winbind/wb_init_domain.c