s4:rpc_server/netlogon: use samdb_domain_guid()/dsdb_trust_local_tdo_info() to build...
commit39823476937e58debdd5e5dd5f0ef3e5ec87e9d6
authorStefan Metzmacher <metze@samba.org>
Tue, 28 Aug 2018 09:46:16 +0000 (28 11:46 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 4 Sep 2018 10:14:39 +0000 (4 12:14 +0200)
tree777f7a547c794bbc2810c54dac7e49068ce90f06
parentc7ca8588f65eaa857d2c957f4c07b88047bbf0ba
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