Skip to content

Commit

Permalink
SUDO: decrease log level in case object wasn't found
Browse files Browse the repository at this point in the history
It is expected sudo responder can be requested to lookup unknown entry.
One of typical examples is lookup for a local user.

Resolves: SSSD#5839

Reviewed-by: Pawel Polawski <[email protected]>
  • Loading branch information
alexey-tikhonov authored and pbrezina committed Oct 27, 2021
1 parent 48234ed commit 86413e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/responder/sudo/sudosrv_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ static void sudosrv_cmd_done(struct tevent_req *req)
&cmd_ctx->num_rules);
talloc_zfree(req);
if (ret != EOK) {
DEBUG(SSSDBG_CRIT_FAILURE, "Unable to obtain cached rules [%d]: %s\n",
DEBUG((ret == ENOENT) ? SSSDBG_MINOR_FAILURE : SSSDBG_OP_FAILURE,
"Unable to obtain cached rules [%d]: %s\n",
ret, sss_strerror(ret));
goto done;
}
Expand Down

0 comments on commit 86413e5

Please sign in to comment.