winbind: set_dc_type_and_flags() is not needed on a DC
commit61af154fc7b6ba185ce8b90efa220ee7ccb55094
authorStefan Metzmacher <metze@samba.org>
Thu, 22 Feb 2018 10:24:38 +0000 (22 11:24 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 27 Feb 2018 15:00:14 +0000 (27 16:00 +0100)
treead2aca2f227750f54168a8ebf16b8cfeabba5c2e
parentf767b7b77aed8ffae7c6e42e5dae5332c6ee0c26
winbind: set_dc_type_and_flags() is not needed on a DC

On a DC we load the trusts in the parent in add_trusted_domains_dc()
from our local configuration. There's no need to find out the trust details
via network calls.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13278

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 55c3af89f1b0baecf5e2d6c2646902edd0684aa8)
source3/winbindd/winbindd_cm.c