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)
committerKarolin Seeger <kseeger@samba.org>
Sat, 13 Jan 2018 11:55:06 +0000 (12:55 +0100)
commitc7c06fd23813a61fdb10745e3ee2838206319bdd
treefea797c6dedecab35980cb54c90b4b1a437fbd4d
parente43ee33a1b715bbf4026a35ca9b400f8b8b6fec3
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