s4:rpc_server/netlogon: use samdb_domain_guid()/dsdb_trust_local_tdo_info() to build...
authorStefan Metzmacher <metze@samba.org>
Tue, 28 Aug 2018 09:46:16 +0000 (11:46 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 5 Sep 2018 11:31:42 +0000 (13:31 +0200)
commit2e7e58a586b48667bb28fee12c51d1e1fb3635da
tree05a5debcfe9e7cb2acdb2a26a7db86b073b7cff4
parente7b43132f7818e1a7f542190e7a7ebc11b383704
s4:rpc_server/netlogon: use samdb_domain_guid()/dsdb_trust_local_tdo_info() to build our netr_OneDomainInfo values

The logic for constructing the values for our own primary domain differs
from the values of trusted domains. In order to make the code easier to
understand we have a new fill_our_one_domain_info() helper that
only takes care of our primary domain.

The cleanup for the trust case will follow in a separate commit.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 61333f7787d78e3ec5c7bd2874d5a0f1f536275a)
source4/rpc_server/netlogon/dcerpc_netlogon.c