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