summaryrefslogtreecommitdiff
path: root/server/monitor.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2008-11-24 11:23:10 -0500
committerSimo Sorce <idra@samba.org>2008-11-24 17:44:37 -0500
commit8c77f1f01f16c05cd8867584b5acf181ef8ce9e0 (patch)
treedaea5886d40b14cf6becb33da266bdc334331665 /server/monitor.c
parent98bf10fa12c08463a1f625403c4621f1bbeb0bcc (diff)
downloadsssd-8c77f1f01f16c05cd8867584b5acf181ef8ce9e0.tar.gz
sssd-8c77f1f01f16c05cd8867584b5acf181ef8ce9e0.tar.bz2
sssd-8c77f1f01f16c05cd8867584b5acf181ef8ce9e0.zip
Replacing hard-coded paths with configure script substitutions.
Changing the default SBUS locations to be configure script parameters
Diffstat (limited to 'server/monitor.c')
-rw-r--r--server/monitor.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/server/monitor.c b/server/monitor.c
index 4916e448..5c2ec992 100644
--- a/server/monitor.c
+++ b/server/monitor.c
@@ -114,14 +114,23 @@ static int monitor_dbus_init(struct mt_ctx *ctx)
{
struct sbus_method_ctx *sd_ctx;
char *sbus_address;
+ char *default_monitor_address;
int ret;
+ default_monitor_address = talloc_asprintf(ctx, "unix:path=%s/%s",
+ PIPE_PATH, SSSD_SERVICE_PIPE);
+ if (!default_monitor_address) {
+ return ENOMEM;
+ }
+
ret = confdb_get_string(ctx->cdb, ctx,
"config/services/monitor", "sbusAddress",
- DEFAULT_SBUS_ADDRESS, &sbus_address);
+ default_monitor_address, &sbus_address);
if (ret != EOK) {
+ talloc_free(default_monitor_address);
return ret;
}
+ talloc_free(default_monitor_address);
sd_ctx = talloc_zero(ctx, struct sbus_method_ctx);
if (!sd_ctx) {