summaryrefslogtreecommitdiffstats
path: root/src/responder/sudo/sudosrv.c
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2016-05-15 20:48:13 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-06-20 14:48:47 +0200
commit83a79d93035c2d75a1941f3b54426119174044a0 (patch)
treeca7d8ae7fe618c4b1798b22ffbf4cc8368156b2d /src/responder/sudo/sudosrv.c
parentdea636af4d1902a081ee891f1b19ee2f8729d759 (diff)
downloadsssd-83a79d93035c2d75a1941f3b54426119174044a0.tar.gz
sssd-83a79d93035c2d75a1941f3b54426119174044a0.tar.xz
sssd-83a79d93035c2d75a1941f3b54426119174044a0.zip
RESPONDER: New interface for client registration
This is just a beginning of new responder interface to data provider and it is just to make the client registration work. It needs further improvement. The idea is to take the existing interface and make it work better with further extensions of data provider. The current interface has several disadvantages such as it is originally build only for account requests and doesn't take different set of output parameters. It also doesn't work well with integration into tevent-made responders. Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/responder/sudo/sudosrv.c')
-rw-r--r--src/responder/sudo/sudosrv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/responder/sudo/sudosrv.c b/src/responder/sudo/sudosrv.c
index 73c91b1f8..e93ec75b4 100644
--- a/src/responder/sudo/sudosrv.c
+++ b/src/responder/sudo/sudosrv.c
@@ -65,9 +65,7 @@ static void sudo_dp_reconnect_init(struct sbus_connection *conn,
DEBUG(SSSDBG_TRACE_FUNC, "Reconnected to the Data Provider.\n");
/* Identify ourselves to the data provider */
- ret = dp_common_send_id(be_conn->conn,
- DATA_PROVIDER_VERSION,
- "SUDO");
+ ret = rdp_register_client(be_conn, "SUDO");
/* all fine */
if (ret == EOK) {
handle_requests_after_reconnect(be_conn->rctx);