summaryrefslogtreecommitdiff
path: root/server/confdb
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-01-26 11:19:42 -0500
committerSimo Sorce <idra@samba.org>2009-01-27 11:44:12 -0500
commit27ee5a204b8927adcc1e340b12d2edf1c70d9ba5 (patch)
treedca6592d4162fb3653390a0474b460e96e370bc8 /server/confdb
parent133eafbed79bb1ca27604c4fea122b55ec998e9d (diff)
downloadsssd-27ee5a204b8927adcc1e340b12d2edf1c70d9ba5.tar.gz
sssd-27ee5a204b8927adcc1e340b12d2edf1c70d9ba5.tar.bz2
sssd-27ee5a204b8927adcc1e340b12d2edf1c70d9ba5.zip
Add skeleton for PolicyKit back-end
Diffstat (limited to 'server/confdb')
-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);