From a2c6e0e0beb75e0a8fa7e3e07e9443d97ea2b731 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 3 Nov 2008 17:18:49 -0500 Subject: Add support for dbus comunication in the nss service Add utility function in confdb Make all component fetch the dbus socket from the confdb --- server/sbus/tests/test_client.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'server/sbus') diff --git a/server/sbus/tests/test_client.c b/server/sbus/tests/test_client.c index bd7f42d5..06cd1133 100644 --- a/server/sbus/tests/test_client.c +++ b/server/sbus/tests/test_client.c @@ -7,9 +7,6 @@ #include "sbus/sssd_dbus.h" #include "sbus_interfaces.h" -/* TODO: get this value from LDB */ -#define DBUS_ADDRESS "unix:path=/var/lib/sss/pipes/private/dbus" - /* Identity */ #define TEST_CLIENT_NAME "testclient" #define TEST_CLIENT_VERSION 1 @@ -149,13 +146,13 @@ int main (int argc, const char *argv[]) printf("Out of memory!?\n"); exit(1); } - + test_ctx = talloc(event_ctx, struct test_cli_ctx); if (!test_ctx) { printf("Out of memory!?\n"); exit(1); } - + test_ctx->ev = event_ctx; ctx->interface = talloc_strdup(ctx, MONITOR_DBUS_INTERFACE); ctx->path = talloc_strdup(ctx, MONITOR_DBUS_PATH); @@ -164,7 +161,9 @@ int main (int argc, const char *argv[]) exit(1); } - ret = sbus_new_connection(test_ctx, test_ctx->ev, DBUS_ADDRESS, &(test_ctx->dct_ctx), NULL); + ret = sbus_new_connection(test_ctx, test_ctx->ev, + DEFAULT_SBUS_ADDRESS, + &test_ctx->dct_ctx, NULL); if (ret != EOK) { exit(1); } -- cgit