From 701cabea51526c3bd40607761dc02069c9c2e499 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek@redhat.com>
Date: Thu, 21 Jul 2016 12:18:01 +0200
Subject: [PATCH 83/86] SIMPLE: Do not parse names on startup
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
It's not required to parse names on SSSD startup in the simple access
provider. We can instead just parse the name when the access request is
processed.
Resolves:
https://fedorahosted.org/sssd/ticket/3101
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
---
src/providers/simple/simple_access.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/providers/simple/simple_access.c b/src/providers/simple/simple_access.c
index cb72ada20727c63452936647876ef297106e17b0..ae90215351fe7db834898067d3b4bad71015ec5f 100644
--- a/src/providers/simple/simple_access.c
+++ b/src/providers/simple/simple_access.c
@@ -284,7 +284,6 @@ errno_t sssm_simple_access_init(TALLOC_CTX *mem_ctx,
struct dp_method *dp_methods)
{
struct simple_ctx *ctx;
- errno_t ret;
ctx = talloc_zero(mem_ctx, struct simple_ctx);
if (ctx == NULL) {
@@ -296,12 +295,6 @@ errno_t sssm_simple_access_init(TALLOC_CTX *mem_ctx,
ctx->be_ctx = be_ctx;
ctx->last_refresh_of_filter_lists = 0;
- ret = simple_access_obtain_filter_lists(ctx);
- if (ret != EOK) {
- talloc_free(ctx);
- return ret;
- }
-
dp_set_method(dp_methods, DPM_ACCESS_HANDLER,
simple_access_handler_send, simple_access_handler_recv, ctx,
struct simple_ctx, struct pam_data, struct pam_data *);
--
2.4.11