set_dc_type_and_flags_trustinfo: Use init_dc_connection and wb_open_internal_pipe
authorAndrew Bartlett <abartlet@samba.org>
Mon, 18 Aug 2014 01:14:04 +0000 (13:14 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 31 Aug 2014 22:36:42 +0000 (00:36 +0200)
commit5602377fcec03ee57cb87c1600b519484c6adc10
tree96c75acf9a0c512b6659167e2a7fcc0b021c9296
parent1c979b1cfc483b88f169e90ba20f773001bcfc26
set_dc_type_and_flags_trustinfo: Use init_dc_connection and wb_open_internal_pipe

This means we call this code, and mark trusted domains as active directory, when we are an AD DC.

Otherwise, in the previous case we would not have domain->active_directory set, and would fail on
connection_ok() due to not having a full connection to our internal DC

Change-Id: I7ccee569d69d6c5466334540db8920e57aafa991
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd_cm.c