From 133eafbed79bb1ca27604c4fea122b55ec998e9d Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 26 Jan 2009 10:36:18 -0500 Subject: Add skeleton for InfoPipe service --- server/confdb/confdb.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'server/confdb') diff --git a/server/confdb/confdb.c b/server/confdb/confdb.c index f9cd20a1..f0290b47 100644 --- a/server/confdb/confdb.c +++ b/server/confdb/confdb.c @@ -457,7 +457,7 @@ static int confdb_init_db(struct confdb_ctx *cdb) if (ret != EOK) goto done; /* Data Provider */ - /* set the sssd_dp description */ + /* Set the sssd_dp description */ val[0] = "Data Provider Configuration"; ret = confdb_add_param(cdb, false, "config/services/dp", "description", val); if (ret != EOK) goto done; @@ -472,9 +472,21 @@ static int confdb_init_db(struct confdb_ctx *cdb) ret = confdb_add_param(cdb, false, "config/services", "activeServices", val); if (ret != EOK) goto done; -#if 0 /* Not yet implemented */ /* InfoPipe */ -#endif + /* Set the sssd_info description */ + val[0] = "InfoPipe Configuration"; + ret = confdb_add_param(cdb, false, "config/services/infp", "description", val); + if (ret != EOK) goto done; + + /* Set the sssd_info command path */ + val[0] = talloc_asprintf(tmp_ctx, "%s/sssd_info", SSSD_LIBEXEC_PATH); + ret = confdb_add_param(cdb, false, "config/services/infp", "command", val); + if (ret != EOK) goto done; + + /* Add the InfoPipe to the list of active services */ + val[0] = "infp"; + ret = confdb_add_param(cdb, false, "config/services", "activeServices", val); + if (ret != EOK) goto done; /* Domains */ val[0] = "Domains served by SSSD"; -- cgit