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 | 6f718ba1720d1318b08fd3fce293fb9c34a36a45 (patch) | |
tree | 94b7965cf840ec2ad2679560d2dd99f6b04bcdb0 /source3/winbindd/winbindd_cm.c | |
parent | 29816c53b28c6c061843e6f8aeef7764d8a78aff (diff) | |
download | samba-6f718ba1720d1318b08fd3fce293fb9c34a36a45.tar.gz |
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 <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/winbindd/winbindd_cm.c')
-rw-r--r-- | source3/winbindd/winbindd_cm.c | 4 |
1 files 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; } |