From 6a31a971a376a992afb838fe60b311360c970267 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 16 Oct 2013 11:53:24 +0200 Subject: SYSDB: Drop the sysdb_ctx parameter from the sysdb_sudo.c module --- src/responder/sudo/sudosrv_get_sudorules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/responder') diff --git a/src/responder/sudo/sudosrv_get_sudorules.c b/src/responder/sudo/sudosrv_get_sudorules.c index e609677cf..0738233d1 100644 --- a/src/responder/sudo/sudosrv_get_sudorules.c +++ b/src/responder/sudo/sudosrv_get_sudorules.c @@ -355,7 +355,7 @@ errno_t sudosrv_get_rules(struct sudo_cmd_ctx *cmd_ctx) * expired rules for this user and defaults at once we will save one * provider call */ - ret = sysdb_get_sudo_user_info(tmp_ctx, cmd_ctx->domain->sysdb, cmd_ctx->domain, + ret = sysdb_get_sudo_user_info(tmp_ctx, cmd_ctx->domain, cmd_ctx->orig_username, NULL, &groupnames); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, @@ -559,7 +559,7 @@ static errno_t sudosrv_get_sudorules_from_cache(TALLOC_CTX *mem_ctx, switch (cmd_ctx->type) { case SSS_SUDO_USER: debug_name = cmd_ctx->cased_username; - ret = sysdb_get_sudo_user_info(tmp_ctx, cmd_ctx->domain->sysdb, + ret = sysdb_get_sudo_user_info(tmp_ctx, cmd_ctx->domain, cmd_ctx->orig_username, NULL, &groupnames); -- cgit