diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2008-11-24 11:23:10 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-11-24 17:44:37 -0500 |
commit | 8c77f1f01f16c05cd8867584b5acf181ef8ce9e0 (patch) | |
tree | daea5886d40b14cf6becb33da266bdc334331665 /server/monitor.c | |
parent | 98bf10fa12c08463a1f625403c4621f1bbeb0bcc (diff) | |
download | sssd-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.c | 11 |
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) { |