From 28d9dcbeabdf919506fe59e9d1cbed84fbd6e649 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 3 Sep 2009 19:29:41 -0400 Subject: Split database in multiple files The special persistent local database retains the original name. All other backends now have their own cache-NAME.ldb file. --- server/responder/common/responder.h | 2 +- server/responder/common/responder_common.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server/responder/common') diff --git a/server/responder/common/responder.h b/server/responder/common/responder.h index 59a58a5c..ddf8b893 100644 --- a/server/responder/common/responder.h +++ b/server/responder/common/responder.h @@ -62,7 +62,6 @@ struct resp_ctx { int lfd; struct tevent_fd *priv_lfde; int priv_lfd; - struct sysdb_ctx *sysdb; struct confdb_ctx *cdb; const char *sock_name; const char *priv_sock_name; @@ -71,6 +70,7 @@ struct resp_ctx { struct sbus_connection *dp_conn; struct sss_domain_info *domains; + struct sysdb_ctx_list *db_list; struct sss_cmd_table *sss_cmds; const char *sss_pipe_name; diff --git a/server/responder/common/responder_common.c b/server/responder/common/responder_common.c index f1030c04..57c8678b 100644 --- a/server/responder/common/responder_common.c +++ b/server/responder/common/responder_common.c @@ -510,7 +510,7 @@ int sss_process_init(TALLOC_CTX *mem_ctx, rctx->priv_sock_name = sss_priv_pipe_name; rctx->confdb_service_path = confdb_service_path; - ret = confdb_get_domains(rctx->cdb, rctx, &rctx->domains); + ret = confdb_get_domains(rctx->cdb, &rctx->domains); if (ret != EOK) { DEBUG(0, ("fatal error setting up domain map\n")); return ret; @@ -534,7 +534,7 @@ int sss_process_init(TALLOC_CTX *mem_ctx, return EIO; } - ret = sysdb_init(rctx, ev, cdb, NULL, &rctx->sysdb); + ret = sysdb_init(rctx, ev, cdb, NULL, false, &rctx->db_list); if (ret != EOK) { DEBUG(0, ("fatal error initializing resp_ctx\n")); return ret; -- cgit