dsdb: make get_parsed_dns_trusted() a common helper function
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 9 Jan 2019 02:12:43 +0000 (15:12 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 13 Feb 2019 03:15:14 +0000 (04:15 +0100)
commit5b0a9818ffd88d495ffbd7387d51d30d5594133d
treedc175836b2d0cb5d134467e82adaf3cb20911df9
parentd0e26ea67fbad4b4e142881c8ae3fca7dd7547a3
dsdb: make get_parsed_dns_trusted() a common helper function

We are already using it in two places, and are about to add a third.

The version in repl_meta_data.c did more work in the case that the
parsed_dns can't really be trusted to conform to the expected format;
this is now a wrapper called get_parsed_dns_trusted_fallback().

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/common/util_links.c
source4/dsdb/common/util_links.h
source4/dsdb/samdb/ldb_modules/repl_meta_data.c
source4/rpc_server/drsuapi/getncchanges.c