From 6f718ba1720d1318b08fd3fce293fb9c34a36a45 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 16 Dec 2014 23:17:52 +0000 Subject: [PATCH] s3:winbindd: we only need a an netlogon connection to a rwdc if we're a rodc ourself If we're a member or RWDC there's no need to require talking to a rwdc, an rodc will forward the request if required. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/winbindd/winbindd_cm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index cb5bc113528..d396018f4c9 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -3127,7 +3127,7 @@ static NTSTATUS cm_connect_netlogon_transport(struct winbindd_domain *domain, *cli = NULL; - result = init_dc_connection_rpc(domain, true); + result = init_dc_connection_rpc(domain, domain->rodc); if (!NT_STATUS_IS_OK(result)) { return result; } @@ -3264,7 +3264,7 @@ NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain, { NTSTATUS status; - status = init_dc_connection_rpc(domain, true); + status = init_dc_connection_rpc(domain, domain->rodc); if (!NT_STATUS_IS_OK(status)) { return status; } -- 2.34.1