summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-03-22 22:50:27 +0000
committerGerald Carter <jerry@samba.org>2004-03-22 22:50:27 +0000
commit63f8fe3d49d0aeadfa657ab2c4daa5480b5cac48 (patch)
tree6f6fba57836eef59cb49866d807485a86b705eb0 /source3/nsswitch
parent14dd75d181293fa5335184d2d836834a42edcbb4 (diff)
downloadsamba-63f8fe3d49d0aeadfa657ab2c4daa5480b5cac48.tar.gz
samba-63f8fe3d49d0aeadfa657ab2c4daa5480b5cac48.tar.bz2
samba-63f8fe3d49d0aeadfa657ab2c4daa5480b5cac48.zip
BUG 1185: use 'winbind cache time' as the reconnect period when seq_num == -1 rather than multiplying it by 8 (the default cache time is 5 minutes now)
(This used to be commit 8d6e370313b62556ba13d88e1ab5ff468ac103c8)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index 91834e476f..6974a14f9c 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -339,10 +339,12 @@ static void refresh_sequence_number(struct winbindd_domain *domain, BOOL force)
get_cache( domain );
+#if 0 /* JERRY -- disable as the default cache time is now 5 minutes */
/* trying to reconnect is expensive, don't do it too often */
if (domain->sequence_number == DOM_SEQUENCE_NONE) {
cache_time *= 8;
}
+#endif
time_diff = t - domain->last_seq_check;