diff options
author | Petr Cech <pcech@redhat.com> | 2016-04-22 08:36:32 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-05-11 12:52:01 +0200 |
commit | e50bd9752c7c94bc06d384487fef890ef8cc0e17 (patch) | |
tree | 8fe16189fce0f951655d7a574bbe4f4ed65d670a | |
parent | 45afb8190a9db5ef5fb9b3ca7e4967d2228c8f1d (diff) | |
download | sssd-e50bd9752c7c94bc06d384487fef890ef8cc0e17.tar.gz sssd-e50bd9752c7c94bc06d384487fef890ef8cc0e17.tar.xz sssd-e50bd9752c7c94bc06d384487fef890ef8cc0e17.zip |
RESPONDER: Removing neg_timeout from sudo resp.
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 <pbrezina@redhat.com>
-rw-r--r-- | src/responder/sudo/sudosrv.c | 9 | ||||
-rw-r--r-- | src/responder/sudo/sudosrv_private.h | 1 |
2 files changed, 0 insertions, 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; /* |