From e50bd9752c7c94bc06d384487fef890ef8cc0e17 Mon Sep 17 00:00:00 2001 From: Petr Cech Date: Fri, 22 Apr 2016 08:36:32 -0400 Subject: RESPONDER: Removing neg_timeout from sudo resp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Timout of negative cache is handled by context of negative cache. So this parameter is not needed now. Resolves: https://fedorahosted.org/sssd/ticket/2137 Reviewed-by: Pavel Březina --- src/responder/sudo/sudosrv.c | 9 --------- src/responder/sudo/sudosrv_private.h | 1 - 2 files changed, 10 deletions(-) diff --git a/src/responder/sudo/sudosrv.c b/src/responder/sudo/sudosrv.c index 6cee1678c..cf131853d 100644 --- a/src/responder/sudo/sudosrv.c +++ b/src/responder/sudo/sudosrv.c @@ -128,15 +128,6 @@ int sudo_process_init(TALLOC_CTX *mem_ctx, sudo_ctx->rctx = rctx; sudo_ctx->rctx->pvt_ctx = sudo_ctx; - ret = confdb_get_int(cdb, CONFDB_NSS_CONF_ENTRY, - CONFDB_NSS_ENTRY_NEG_TIMEOUT, 15, - &sudo_ctx->neg_timeout); - if (ret != EOK) { - DEBUG(SSSDBG_FATAL_FAILURE, - "fatal error getting ncache timeout\n"); - goto fail; - } - sss_ncache_prepopulate(sudo_ctx->ncache, sudo_ctx->rctx->cdb, rctx); if (ret != EOK) { DEBUG(SSSDBG_FATAL_FAILURE, diff --git a/src/responder/sudo/sudosrv_private.h b/src/responder/sudo/sudosrv_private.h index 99eef03e9..a44d724ed 100644 --- a/src/responder/sudo/sudosrv_private.h +++ b/src/responder/sudo/sudosrv_private.h @@ -43,7 +43,6 @@ enum sss_sudo_type { struct sudo_ctx { struct resp_ctx *rctx; - int neg_timeout; struct sss_nc_ctx *ncache; /* -- cgit