summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_cred_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_cred_cache.c b/source3/nsswitch/winbindd_cred_cache.c
index ef49dbfe74..37e3bb2f8c 100644
--- a/source3/nsswitch/winbindd_cred_cache.c
+++ b/source3/nsswitch/winbindd_cred_cache.c
@@ -221,7 +221,7 @@ static void krb5_ticket_gain_handler(struct timed_event *te,
retry_later:
entry->event = add_timed_event(entry,
- timeval_current_ofs(lp_winbind_cache_time(), 0),
+ timeval_current_ofs(MAX(30, lp_winbind_cache_time()), 0),
"krb5_ticket_gain_handler",
krb5_ticket_gain_handler,
entry);
@@ -351,7 +351,7 @@ NTSTATUS add_ccache_to_list(const char *princ_name,
if (schedule_refresh_event && renew_until > 0) {
if (postponed_request) {
entry->event = add_timed_event(entry,
- timeval_current_ofs(lp_winbind_cache_time(), 0),
+ timeval_current_ofs(MAX(30, lp_winbind_cache_time()), 0),
"krb5_ticket_gain_handler",
krb5_ticket_gain_handler,
entry);