diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-06 03:58:58 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:49:20 +0100 |
commit | 234958be042980242fff6da936af674da877c5ef (patch) | |
tree | a2f96f1cf185f950629f0718e9ce69e314c5fada /src/tools/sss_cache.c | |
parent | 72aa8e7b1d234b6b68446d42efa1cff22b70c81b (diff) | |
download | sssd-234958be042980242fff6da936af674da877c5ef.tar.gz sssd-234958be042980242fff6da936af674da877c5ef.tar.xz sssd-234958be042980242fff6da936af674da877c5ef.zip |
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.
Diffstat (limited to 'src/tools/sss_cache.c')
-rw-r--r-- | src/tools/sss_cache.c | 5 |
1 files changed, 2 insertions, 3 deletions
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")); |