r22705: Implement new set_dc_type_and_flags() called based on the
authorGerald Carter <jerry@samba.org>
Sun, 6 May 2007 19:37:13 +0000 (19:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:21:47 +0000 (12:21 -0500)
commit96f590807f82b7f104661020432318e3739e0b30
tree70b160479e1655dde379a7cd44880e924ff617ae
parent7cb2a4be354c23b4228d67fe2bba68067ea619cf
r22705: Implement new set_dc_type_and_flags() called based on the
information return from our DC in the DsEnumerateDomainTrusts()
call.   If the fails, we callback ot the older
connect-to-the-remote-domain method.

Note that this means we can only reliably expect the native_mode
flag to be set for our own domain as this information in not
available outside our primary domain from the trusted information.
This is ok as we only really need the flag when trying to
determine to enumerate domain local groups via RPC.

Use the AD flag rather than the native_mode flag when using
ldap to obtain the seq_num for a domain.
(This used to be commit 4b4148a9642f03b8f27dda2132708bcc0cbb3b8e)
source3/nsswitch/winbindd_cm.c
source3/nsswitch/winbindd_rpc.c
source3/nsswitch/winbindd_util.c