From 1244d2a06aca7e1267fcdf01464ea7f4c87870a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= Date: Wed, 26 Oct 2011 18:07:36 +0200 Subject: [PATCH 8/8] SUDO Integration - SUDO responder - refresh SUDOers --- src/responder/sudo/sudosrv.h | 2 ++ src/responder/sudo/sudosrv_cmd.c | 5 +++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/responder/sudo/sudosrv.h b/src/responder/sudo/sudosrv.h index 9a453d1..33a94aa 100644 --- a/src/responder/sudo/sudosrv.h +++ b/src/responder/sudo/sudosrv.h @@ -34,6 +34,8 @@ struct sudo_ctx { int sudo_cmd_execute(struct cli_ctx *cctx); +int sudo_dp_refresh_send(struct cli_ctx *cctx, int timeout); + struct sss_cmd_table *get_sudo_cmds(void); #endif /* SUDOSRV_H_ */ diff --git a/src/responder/sudo/sudosrv_cmd.c b/src/responder/sudo/sudosrv_cmd.c index ee9060f..3d41d8a 100644 --- a/src/responder/sudo/sudosrv_cmd.c +++ b/src/responder/sudo/sudosrv_cmd.c @@ -25,7 +25,9 @@ #include "util/util.h" #include "responder/common/responder.h" #include "responder/common/responder_packet.h" +#include "responder/sudo/sudosrv.h" #include "sss_client/sudo_plugin/sss_sudoplugin.h" +#include "sss_client/sss_cli.h" static int sudo_cmd_check_response(struct cli_ctx *cctx, int return_code, @@ -252,6 +254,9 @@ static int sudo_cmd_check(struct cli_ctx *cctx) { } } + /* contact DP */ + ret = sudo_dp_refresh_send(cctx, SSS_CLI_SOCKET_TIMEOUT/2); + /* send response */ sudo_cmd_check_response(cctx, sudo_result, argc_in, argv_in, command_info_out, command_info_out_length, NULL); -- 1.7.6.4