From 234958be042980242fff6da936af674da877c5ef Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 6 Jan 2013 03:58:58 -0500 Subject: Refactor single domain initialization Bring it out of sysdb, which will slowly remove internal dependencies on domains and instead will always require them to be passed by callers. --- src/tools/sss_cache.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/tools/sss_cache.c') diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c index 5f8450f7d..2ab5303a4 100644 --- a/src/tools/sss_cache.c +++ b/src/tools/sss_cache.c @@ -398,7 +398,6 @@ errno_t init_domains(struct cache_tool_ctx *ctx, const char *domain) { char *confdb_path; int ret; - struct sysdb_ctx *db_ctx = NULL; confdb_path = talloc_asprintf(ctx, "%s/%s", DB_PATH, CONFDB_FILE); if (confdb_path == NULL) { @@ -414,8 +413,8 @@ errno_t init_domains(struct cache_tool_ctx *ctx, const char *domain) } if (domain) { - ret = sysdb_init_domain_and_sysdb(ctx, ctx->confdb, domain, DB_PATH, - &ctx->domains, &db_ctx); + ret = sssd_domain_init(ctx, ctx->confdb, + domain, DB_PATH, &ctx->domains); if (ret != EOK) { SYSDB_VERSION_ERROR(ret); DEBUG(1, ("Could not initialize connection to the sysdb\n")); -- cgit