summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-01-26 12:37:19 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-02-06 08:36:51 -0500
commit699cb9781f64796af68ea620fd4952d47ac0d64a (patch)
tree832cfa0a5f4b9a1a37678a13f36c917f2f1aacaa
parentc9750312bfb4196b49ba6f91b26489f630958452 (diff)
downloadsssd-699cb9781f64796af68ea620fd4952d47ac0d64a.tar.gz
sssd-699cb9781f64796af68ea620fd4952d47ac0d64a.tar.bz2
sssd-699cb9781f64796af68ea620fd4952d47ac0d64a.zip
SUDO Integration - fix offline behaviour
-rw-r--r--src/responder/sudo/sudosrv_get_sudorules.c4
1 files 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);