summaryrefslogtreecommitdiff
path: root/server/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-09-23 12:00:09 +0200
committerSimo Sorce <ssorce@redhat.com>2009-09-23 12:32:58 -0400
commit5085072530ead6c81d5e73fe11c41441470eb15b (patch)
tree7bea32ceccbe69d005d80b6cee1ac592fab4540d /server/providers
parent03bf23e432511cb513d14397c477db86681d4dff (diff)
downloadsssd-5085072530ead6c81d5e73fe11c41441470eb15b.tar.gz
sssd-5085072530ead6c81d5e73fe11c41441470eb15b.tar.bz2
sssd-5085072530ead6c81d5e73fe11c41441470eb15b.zip
Remove provider=files
Remove this provider type, as well as any references in the docs and examples to the "LEGACYLOCAL" migration domain. Fixes: #165
Diffstat (limited to 'server/providers')
-rw-r--r--server/providers/data_provider_be.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/server/providers/data_provider_be.c b/server/providers/data_provider_be.c
index 2e83ab6e..85281d4c 100644
--- a/server/providers/data_provider_be.c
+++ b/server/providers/data_provider_be.c
@@ -817,56 +817,6 @@ done:
return ret;
}
-/* Some providers are just aliases for more complicated settings,
- * rewrite the alias into the actual settings */
-static int be_rewrite(struct be_ctx *ctx)
-{
- int ret;
- const char *val[2];
- val[1] = NULL;
- char **get_values = NULL;
-
- /* "files" is a special case that means:
- * provider = proxy
- * libName = files
- */
- ret = confdb_get_param(ctx->cdb, ctx, ctx->conf_path, "provider",
- &get_values);
- if (ret != EOK) {
- DEBUG(1, ("Failed to read provider from confdb.\n"));
- return ret;
- }
- if (get_values[0] == NULL) {
- DEBUG(1, ("Missing provider.\n"));
- return EINVAL;
- }
-
- if (strcasecmp(get_values[0], "files") == 0) {
- DEBUG(5, ("Rewriting provider %s\n", get_values[0]));
- talloc_zfree(get_values);
-
- val[0] = "proxy";
- ret = confdb_add_param(ctx->cdb, true,
- ctx->conf_path,
- "provider",
- val);
- if (ret) {
- return ret;
- }
-
- val[0] = "files";
- ret = confdb_add_param(ctx->cdb, true,
- ctx->conf_path,
- "libName",
- val);
- if (ret) {
- return ret;
- }
- }
-
- return EOK;
-}
-
int be_process_init(TALLOC_CTX *mem_ctx,
const char *be_domain,
struct tevent_context *ev,
@@ -913,12 +863,6 @@ int be_process_init(TALLOC_CTX *mem_ctx,
return ret;
}
- ret = be_rewrite(ctx);
- if (ret != EOK) {
- DEBUG(0, ("error rewriting provider types\n"));
- return ret;
- }
-
ret = load_backend_module(ctx, BET_ID,
&ctx->bet_info[BET_ID].bet_ops,
&ctx->bet_info[BET_ID].pvt_bet_data);