winbindd: rework add_trusted_domain(), replacing add_trusted_domain_from_tdc()
authorRalph Boehme <slow@samba.org>
Sat, 16 Dec 2017 10:34:23 +0000 (11:34 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 13 Jan 2018 11:55:06 +0000 (12:55 +0100)
commit5bf2979bb6e22c6d3f7565c13329aa60fdce4e0f
tree8fc9d990bdb1ec6eb3861ccda9917da7eea631a8
parent85874458852697df8f7c45fb9e7f848367d07a07
winbindd: rework add_trusted_domain(), replacing add_trusted_domain_from_tdc()

This extends add_trusted_domain() to be a the one true one-stop function
to add winbindd domain.

add_trusted_domain_from_tdc() used a struct winbindd_tdc_domain to fill
in the winbindd domain which made it hard to track which attributes
would be required and which are optional.

Pair-programmed-with: Stefan Metzmacher <metze@samba.org>

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