From 76db25eab9010a33657f35e5afc8477c996df7a3 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Fri, 11 May 2012 09:42:01 +0200 Subject: sudo responder: new request enum type sss_sudo_type represents query type that comes to the responder sss_dp_sudo_type represents query type to DP that is issued by the responder I'm leaving current values of sss_dp_sudo_type untouched so the compilation is not broken. Hovewer, they will be changed to new DP types once the DP interface is updated. --- src/responder/sudo/sudosrv_cmd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/responder/sudo/sudosrv_cmd.c') diff --git a/src/responder/sudo/sudosrv_cmd.c b/src/responder/sudo/sudosrv_cmd.c index 911acf6e..13eb4991 100644 --- a/src/responder/sudo/sudosrv_cmd.c +++ b/src/responder/sudo/sudosrv_cmd.c @@ -155,7 +155,7 @@ errno_t sudosrv_cmd_done(struct sudo_cmd_ctx *cmd_ctx, int ret) return EOK; } -static int sudosrv_cmd(enum sss_dp_sudo_type type, struct cli_ctx *cli_ctx) +static int sudosrv_cmd(enum sss_sudo_type type, struct cli_ctx *cli_ctx) { struct sudo_cmd_ctx *cmd_ctx = NULL; struct sudo_dom_ctx *dom_ctx = NULL; @@ -209,12 +209,12 @@ static int sudosrv_cmd(enum sss_dp_sudo_type type, struct cli_ctx *cli_ctx) cmd_ctx->check_next = cmd_ctx->domain == NULL; switch (cmd_ctx->type) { - case SSS_DP_SUDO_DEFAULTS: + case SSS_SUDO_DEFAULTS: DEBUG(SSSDBG_FUNC_DATA, ("Requesting default options " "for [%s] from [%s]\n", cmd_ctx->username, cmd_ctx->domain ? cmd_ctx->domain->name : "")); break; - case SSS_DP_SUDO_USER: + case SSS_SUDO_USER: DEBUG(SSSDBG_FUNC_DATA, ("Requesting rules " "for [%s] from [%s]\n", cmd_ctx->username, cmd_ctx->domain ? cmd_ctx->domain->name : "")); @@ -241,12 +241,12 @@ done: static int sudosrv_cmd_get_sudorules(struct cli_ctx *cli_ctx) { - return sudosrv_cmd(SSS_DP_SUDO_USER, cli_ctx); + return sudosrv_cmd(SSS_SUDO_USER, cli_ctx); } static int sudosrv_cmd_get_defaults(struct cli_ctx *cli_ctx) { - return sudosrv_cmd(SSS_DP_SUDO_DEFAULTS, cli_ctx); + return sudosrv_cmd(SSS_SUDO_DEFAULTS, cli_ctx); } struct cli_protocol_version *register_cli_protocol_version(void) -- cgit