diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-05-26 11:58:38 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-07-04 02:52:35 +0200 |
commit | af7f88721a21fbe33cec2bc277f65a736f6cb9cc (patch) | |
tree | ae69c5d117289d1e77a51dbf787ba973ba86ef38 /source3/winbindd/winbindd_msrpc.c | |
parent | da3a79831afbd1b85592be36eb47de375e575643 (diff) | |
download | samba-af7f88721a21fbe33cec2bc277f65a736f6cb9cc.tar.gz |
winbindd: Use a remote RPC server when we are an RODC when needed
This allows us to operate against the local cache where possible, but
to forward some operations to the read-write DC.
Andrew Bartlett
Change-Id: Idc78ae379a402969381758919fcede17568f094e
Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
Diffstat (limited to 'source3/winbindd/winbindd_msrpc.c')
-rw-r--r-- | source3/winbindd/winbindd_msrpc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/winbindd/winbindd_msrpc.c b/source3/winbindd/winbindd_msrpc.c index 426d64cf1f9..9aef7ccdff5 100644 --- a/source3/winbindd/winbindd_msrpc.c +++ b/source3/winbindd/winbindd_msrpc.c @@ -76,7 +76,7 @@ static NTSTATUS msrpc_query_user_list(struct winbindd_domain *domain, goto done; } - status = cm_connect_sam(domain, tmp_ctx, &samr_pipe, &dom_pol); + status = cm_connect_sam(domain, tmp_ctx, false, &samr_pipe, &dom_pol); if (!NT_STATUS_IS_OK(status)) { goto done; } @@ -135,7 +135,7 @@ static NTSTATUS msrpc_enum_dom_groups(struct winbindd_domain *domain, goto done; } - status = cm_connect_sam(domain, tmp_ctx, &samr_pipe, &dom_pol); + status = cm_connect_sam(domain, tmp_ctx, false, &samr_pipe, &dom_pol); if (!NT_STATUS_IS_OK(status)) { goto done; } @@ -194,7 +194,7 @@ static NTSTATUS msrpc_enum_local_groups(struct winbindd_domain *domain, goto done; } - status = cm_connect_sam(domain, tmp_ctx, &samr_pipe, &dom_pol); + status = cm_connect_sam(domain, tmp_ctx, false, &samr_pipe, &dom_pol); if (!NT_STATUS_IS_OK(status)) { goto done; } @@ -452,7 +452,7 @@ static NTSTATUS msrpc_query_user(struct winbindd_domain *domain, } /* no cache; hit the wire */ - status = cm_connect_sam(domain, tmp_ctx, &samr_pipe, &dom_pol); + status = cm_connect_sam(domain, tmp_ctx, false, &samr_pipe, &dom_pol); if (!NT_STATUS_IS_OK(status)) { goto done; } @@ -512,7 +512,7 @@ static NTSTATUS msrpc_lookup_usergroups(struct winbindd_domain *domain, } /* no cache; hit the wire */ - status = cm_connect_sam(domain, tmp_ctx, &samr_pipe, &dom_pol); + status = cm_connect_sam(domain, tmp_ctx, false, &samr_pipe, &dom_pol); if (!NT_STATUS_IS_OK(status)) { goto done; } @@ -575,7 +575,7 @@ static NTSTATUS msrpc_lookup_useraliases(struct winbindd_domain *domain, goto done; } - status = cm_connect_sam(domain, tmp_ctx, &samr_pipe, &dom_pol); + status = cm_connect_sam(domain, tmp_ctx, false, &samr_pipe, &dom_pol); if (!NT_STATUS_IS_OK(status)) { goto done; } @@ -641,7 +641,7 @@ static NTSTATUS msrpc_lookup_groupmem(struct winbindd_domain *domain, *num_names = 0; - result = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol); + result = cm_connect_sam(domain, mem_ctx, false, &cli, &dom_pol); if (!NT_STATUS_IS_OK(result)) return result; @@ -903,7 +903,7 @@ static NTSTATUS msrpc_sequence_number(struct winbindd_domain *domain, } #endif /* HAVE_LDAP */ - status = cm_connect_sam(domain, tmp_ctx, &samr_pipe, &dom_pol); + status = cm_connect_sam(domain, tmp_ctx, false, &samr_pipe, &dom_pol); if (!NT_STATUS_IS_OK(status)) { goto done; } @@ -992,7 +992,7 @@ static NTSTATUS msrpc_lockout_policy(struct winbindd_domain *domain, return NT_STATUS_NOT_SUPPORTED; } - status = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol); + status = cm_connect_sam(domain, mem_ctx, false, &cli, &dom_pol); if (!NT_STATUS_IS_OK(status)) { goto done; } @@ -1042,7 +1042,7 @@ static NTSTATUS msrpc_password_policy(struct winbindd_domain *domain, return NT_STATUS_NOT_SUPPORTED; } - status = cm_connect_sam(domain, mem_ctx, &cli, &dom_pol); + status = cm_connect_sam(domain, mem_ctx, false, &cli, &dom_pol); if (!NT_STATUS_IS_OK(status)) { goto done; } |