summaryrefslogtreecommitdiff
path: root/src/responder
diff options
context:
space:
mode:
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/sudo/sudosrv_get_sudorules.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/responder/sudo/sudosrv_get_sudorules.c b/src/responder/sudo/sudosrv_get_sudorules.c
index 76eae222..f1537820 100644
--- a/src/responder/sudo/sudosrv_get_sudorules.c
+++ b/src/responder/sudo/sudosrv_get_sudorules.c
@@ -306,7 +306,6 @@ sudosrv_dp_req_done(struct tevent_req *req);
static errno_t sudosrv_get_sudorules_query_cache(TALLOC_CTX *mem_ctx,
struct sysdb_ctx *sysdb,
struct sss_domain_info *domain,
- enum sss_dp_sudo_type type,
const char **attrs,
unsigned int flags,
const char *username,
@@ -370,8 +369,8 @@ errno_t sudosrv_get_rules(struct sudo_cmd_ctx *cmd_ctx)
| SYSDB_SUDO_FILTER_ONLY_EXPIRED
| SYSDB_SUDO_FILTER_USERINFO;
ret = sudosrv_get_sudorules_query_cache(tmp_ctx, cmd_ctx->domain->sysdb,
- cmd_ctx->domain, cmd_ctx->type,
- attrs, flags, cmd_ctx->orig_username,
+ cmd_ctx->domain, attrs, flags,
+ cmd_ctx->orig_username,
cmd_ctx->uid, groupnames,
&expired_rules, &expired_rules_num);
if (ret != EOK) {
@@ -577,8 +576,8 @@ static errno_t sudosrv_get_sudorules_from_cache(TALLOC_CTX *mem_ctx,
}
ret = sudosrv_get_sudorules_query_cache(tmp_ctx, cmd_ctx->domain->sysdb,
- cmd_ctx->domain, cmd_ctx->type,
- attrs, flags, cmd_ctx->orig_username,
+ cmd_ctx->domain, attrs, flags,
+ cmd_ctx->orig_username,
cmd_ctx->uid, groupnames,
&rules, &num_rules);
if (ret != EOK) {
@@ -610,7 +609,6 @@ sort_sudo_rules(struct sysdb_attrs **rules, size_t count);
static errno_t sudosrv_get_sudorules_query_cache(TALLOC_CTX *mem_ctx,
struct sysdb_ctx *sysdb,
struct sss_domain_info *domain,
- enum sss_dp_sudo_type type,
const char **attrs,
unsigned int flags,
const char *username,