From c9f9917e77ac780594c3dff476c33f521bbef2bd Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 13 Sep 2006 13:55:19 +0000 Subject: r18473: Once we go online, trigger a "get krb5 ticket event" immediately if we were waiting on one. Jeremy. (This used to be commit 6dc8f9042f057e1f9aff46042a0fe697cb8a912c) --- source3/nsswitch/winbindd_cm.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c index ff2567d3e5..a0d97f2ff6 100644 --- a/source3/nsswitch/winbindd_cm.c +++ b/source3/nsswitch/winbindd_cm.c @@ -146,6 +146,8 @@ void set_domain_offline(struct winbindd_domain *domain) void set_domain_online(struct winbindd_domain *domain) { + struct timeval now; + DEBUG(10,("set_domain_online: called for domain %s\n", domain->name )); @@ -155,6 +157,10 @@ void set_domain_online(struct winbindd_domain *domain) return; } + /* If we are waiting to get a krb5 ticket, trigger immediately. */ + GetTimeOfDay(&now); + set_event_dispatch_time("krb5_ticket_gain_handler", now); + domain->online = True; } -- cgit