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_cache.c | |
parent | da3a79831afbd1b85592be36eb47de375e575643 (diff) | |
download | samba-af7f88721a21fbe33cec2bc277f65a736f6cb9cc.tar.gz samba-af7f88721a21fbe33cec2bc277f65a736f6cb9cc.tar.xz samba-af7f88721a21fbe33cec2bc277f65a736f6cb9cc.zip |
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_cache.c')
-rw-r--r-- | source3/winbindd/winbindd_cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index dfad8f5c08..bfd78daef5 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -132,7 +132,8 @@ static struct winbind_cache *get_cache(struct winbindd_domain *domain) } if ( !domain->initialized ) { - init_dc_connection( domain ); + /* We do not need a connection to an RW DC for cache operation */ + init_dc_connection(domain, false); } /* |