summaryrefslogtreecommitdiff
path: root/server/confdb/confdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/confdb/confdb.c')
-rw-r--r--server/confdb/confdb.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/server/confdb/confdb.c b/server/confdb/confdb.c
index f0290b47..945ac2b8 100644
--- a/server/confdb/confdb.c
+++ b/server/confdb/confdb.c
@@ -488,6 +488,22 @@ static int confdb_init_db(struct confdb_ctx *cdb)
ret = confdb_add_param(cdb, false, "config/services", "activeServices", val);
if (ret != EOK) goto done;
+/* PolicyKit */
+ /* Set the sssd_pk description */
+ val[0] = "PolicyKit Backend Configuration";
+ ret = confdb_add_param(cdb, false, "config/services/spk", "description", val);
+ if (ret != EOK) goto done;
+
+ /* Set the sssd_info command path */
+ val[0] = talloc_asprintf(tmp_ctx, "%s/sssd_pk", SSSD_LIBEXEC_PATH);
+ ret = confdb_add_param(cdb, false, "config/services/spk", "command", val);
+ if (ret != EOK) goto done;
+
+ /* Add the InfoPipe to the list of active services */
+ val[0] = "spk";
+ ret = confdb_add_param(cdb, false, "config/services", "activeServices", val);
+ if (ret != EOK) goto done;
+
/* Domains */
val[0] = "Domains served by SSSD";
ret = confdb_add_param(cdb, false, "config/domains", "description", val);