From 909a86af4eb99f5d311d7136cab78dca535ae304 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 31 May 2013 10:52:05 +0200 Subject: Lookup domains at startup To make sure that e.g. the short/NetBIOS domain name is available this patch make sure that the responders send a get_domains request to their backends at startup the collect the domain information or read it from the cache if the backend is offline. For completeness I added this to all responders even if they do not need the information at the moment. Fixes https://fedorahosted.org/sssd/ticket/1951 --- src/responder/nss/nsssrv.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/responder/nss') diff --git a/src/responder/nss/nsssrv.c b/src/responder/nss/nsssrv.c index ee8fecb01..ebad15015 100644 --- a/src/responder/nss/nsssrv.c +++ b/src/responder/nss/nsssrv.c @@ -532,6 +532,12 @@ int nss_process_init(TALLOC_CTX *mem_ctx, } responder_set_fd_limit(fd_limit); + ret = schedule_get_domains_task(rctx, rctx->ev, rctx); + if (ret != EOK) { + DEBUG(SSSDBG_FATAL_FAILURE, ("schedule_get_domains_tasks failed.\n")); + goto fail; + } + DEBUG(SSSDBG_TRACE_FUNC, ("NSS Initialization complete\n")); return EOK; -- cgit