winbindd: only use NetBIOS name when searching domain list in add_trusted_domain_from...
authorRalph Boehme <slow@samba.org>
Fri, 15 Dec 2017 20:13:52 +0000 (21:13 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 13 Jan 2018 11:55:06 +0000 (12:55 +0100)
commit5ffade7b29292c671aca51bd82e25de8723d6852
treeaf59045b83668bfa3dfeaab3be4b237de1b1e727
parentc7c06fd23813a61fdb10745e3ee2838206319bdd
winbindd: only use NetBIOS name when searching domain list in add_trusted_domain_from_tdc()

Unique key for domains is the NetBIOS name, period. If the the caller
passes a domain name that matches a different domains DNS name or vice
versa, that is an error. The same applies to SIDs.

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