From: Stefan Metzmacher Date: Tue, 16 Dec 2014 23:17:52 +0000 (+0000) Subject: s3:winbindd: make sure we try to use NCACN_IP_TCP in cm_connect_netlogon X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba%2Fsamba-obnox.git;a=commitdiff_plain;h=29816c53b28c6c061843e6f8aeef7764d8a78aff s3:winbindd: make sure we try to use NCACN_IP_TCP in cm_connect_netlogon We need to call init_dc_connection_rpc() before we can decide if we want to try NCACN_IP_TCP. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index 4b01348c8f8..cb5bc113528 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -3264,6 +3264,11 @@ NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain, { NTSTATUS status; + status = init_dc_connection_rpc(domain, true); + if (!NT_STATUS_IS_OK(status)) { + return status; + } + if (domain->active_directory && domain->can_do_ncacn_ip_tcp) { status = cm_connect_netlogon_transport(domain, NCACN_IP_TCP, cli); if (NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED) ||