Fix NETLOGON credential chain with Windows 2008 all over the place.
authorGünther Deschner <gd@samba.org>
Wed, 2 Apr 2008 00:29:48 +0000 (02:29 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 2 Apr 2008 09:12:47 +0000 (11:12 +0200)
commit99d35904552b01ef9f2adc40e16887da9eb4de69
tree9362193c6a4a8a3dbc51e51f0c6c39416fd1dbe6
parent5b07337cc5e853d0f02554593f4eb842191d67e5
Fix NETLOGON credential chain with Windows 2008 all over the place.

In order to avoid receiving NT_STATUS_DOWNGRADE_DETECTED from a w2k8
netr_ServerAuthenticate2 reply, we need to start with the AD netlogon negotiate
flags everywhere (not only when running in security=ads). Only for NT4 we need
to do a downgrade to the returned negotiate flags.

Tested with w2k8, w2ksp4, w2k3r2 and nt4sp6.

Guenther
(This used to be commit 0970369ca0cb9ae465cff40e5c75739824daf1d0)
source3/auth/auth_domain.c
source3/include/rpc_dce.h
source3/libnet/libnet_join.c
source3/libsmb/trusts_util.c
source3/rpc_client/cli_netlogon.c
source3/rpc_client/cli_pipe.c
source3/rpcclient/rpcclient.c
source3/utils/net_rpc_join.c
source3/utils/net_rpc_samsync.c
source3/winbindd/winbindd_cm.c