From 699cb9781f64796af68ea620fd4952d47ac0d64a Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Thu, 26 Jan 2012 12:37:19 +0100 Subject: SUDO Integration - fix offline behaviour --- src/responder/sudo/sudosrv_get_sudorules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/responder/sudo/sudosrv_get_sudorules.c b/src/responder/sudo/sudosrv_get_sudorules.c index c53638a3..cecede01 100644 --- a/src/responder/sudo/sudosrv_get_sudorules.c +++ b/src/responder/sudo/sudosrv_get_sudorules.c @@ -133,8 +133,8 @@ static errno_t sudosrv_get_user(struct sudo_dom_ctx *dctx) /* If cache miss and we haven't checked DP yet OR the entry is * outdated, go to DP */ - if ((dctx->user->count == 0 && dctx->check_provider) || - cache_expire < time(NULL)) { + if ((dctx->user->count == 0 || cache_expire < time(NULL)) + && dctx->check_provider) { dpreq = sss_dp_get_account_send(cli_ctx, cli_ctx->rctx, dom, false, SSS_DP_INITGROUPS, cmd_ctx->username, 0, NULL); -- cgit