winbindd: enforce valid SID in add_trusted_domain_from_tdc()
authorRalph Boehme <slow@samba.org>
Fri, 15 Dec 2017 20:09:15 +0000 (21:09 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 12 Jan 2018 19:12:56 +0000 (08:12 +1300)
commit6abbd021e54c231be99bcfebb82e308c0fb12ea9
tree637f6d763cd9d293d79c30ea6862c674f8f131ec
parentd0663a85399f77e9343f26b36d66cfeb137caa34
winbindd: enforce valid SID in add_trusted_domain_from_tdc()

It's the callers responsibility to ensure we get a valid SID. Adding
half-baked domains with only partially valid data is a recipe for
desaster.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd_util.c