diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_cred_cache.c | 3 | ||||
-rw-r--r-- | source3/nsswitch/winbindd_pam.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/source3/nsswitch/winbindd_cred_cache.c b/source3/nsswitch/winbindd_cred_cache.c index def4c6197c..6f629ad15c 100644 --- a/source3/nsswitch/winbindd_cred_cache.c +++ b/source3/nsswitch/winbindd_cred_cache.c @@ -280,7 +280,6 @@ NTSTATUS add_ccache_to_list(const char *princ_name, time_t create_time, time_t ticket_end, time_t renew_until, - BOOL schedule_refresh_event, BOOL postponed_request) { struct WINBINDD_CCACHE_ENTRY *entry = NULL; @@ -348,7 +347,7 @@ NTSTATUS add_ccache_to_list(const char *princ_name, entry->uid = uid; entry->ref_count = 1; - if (schedule_refresh_event && renew_until > 0) { + if (lp_winbind_refresh_tickets() && renew_until > 0) { if (postponed_request) { entry->event = add_timed_event(entry, timeval_current_ofs(MAX(30, lp_winbind_cache_time()), 0), diff --git a/source3/nsswitch/winbindd_pam.c b/source3/nsswitch/winbindd_pam.c index 70007d481c..9274c30ba7 100644 --- a/source3/nsswitch/winbindd_pam.c +++ b/source3/nsswitch/winbindd_pam.c @@ -608,7 +608,6 @@ static NTSTATUS winbindd_raw_kerberos_login(struct winbindd_domain *domain, time(NULL), ticket_lifetime, renewal_until, - lp_winbind_refresh_tickets(), False); if (!NT_STATUS_IS_OK(result)) { @@ -884,7 +883,6 @@ NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain, time(NULL), time(NULL) + lp_winbind_cache_time(), time(NULL) + WINBINDD_PAM_AUTH_KRB5_RENEW_TIME, - lp_winbind_refresh_tickets(), True); if (!NT_STATUS_IS_OK(result)) { |