diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-12-16 23:17:52 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-12-19 13:15:13 +0100 |
commit | 29816c53b28c6c061843e6f8aeef7764d8a78aff (patch) | |
tree | 2ff70806fec0de5f0c3e2eb4e3bad99f2ce7901e | |
parent | fb42b02c9f75804bc471c1f88fbda28865d9f01e (diff) | |
download | samba-29816c53b28c6c061843e6f8aeef7764d8a78aff.tar.gz |
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 <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | source3/winbindd/winbindd_cm.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) || |