s4:dsdb: add dsdb_trust_domain_by_{sid,name}()
authorStefan Metzmacher <metze@samba.org>
Fri, 16 Feb 2018 00:14:00 +0000 (01:14 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 21 Feb 2018 13:19:18 +0000 (14:19 +0100)
commite9ace1852ff88ebb7778e8db9a49bc5c61512d16
tree04fa0149df5962e1613756d52a76287755f63e0c
parent9b6a0b1a63f2ebfbd578047401dfbe38606c8c44
s4:dsdb: add dsdb_trust_domain_by_{sid,name}()

This gets the lsa_ForestTrustDomainInfo for the searched
domain as well as the lsa_TrustDomainInfoInfoEx for the
direct trust (which might be the same for external trust or
the forest root domain).

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13286

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/dsdb/common/util_trusts.c