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)
commit0970369ca0cb9ae465cff40e5c75739824daf1d0
tree920de08a1bb76e9c7b89092db245133576828b09
parent547eacf6058d2bc5b41b266b70f8f4747aca4eae
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
source/auth/auth_domain.c
source/include/rpc_dce.h
source/libnet/libnet_join.c
source/libsmb/trusts_util.c
source/rpc_client/cli_netlogon.c
source/rpc_client/cli_pipe.c
source/rpcclient/rpcclient.c
source/utils/net_rpc_join.c
source/utils/net_rpc_samsync.c
source/winbindd/winbindd_cm.c