summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2016-07-21 12:18:01 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-08-10 16:55:53 +0200
commitd2902de03738a3018445698650d8b974ae3cf230 (patch)
tree60011dbf6e8eefe2a834a5e90c1fb73606b0c183 /src/providers
parentbad17a253bf979f23b2294c3720300d1053744b1 (diff)
downloadsssd-d2902de03738a3018445698650d8b974ae3cf230.tar.gz
sssd-d2902de03738a3018445698650d8b974ae3cf230.tar.xz
sssd-d2902de03738a3018445698650d8b974ae3cf230.zip
SIMPLE: Do not parse names on startup
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>
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/simple/simple_access.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/providers/simple/simple_access.c b/src/providers/simple/simple_access.c
index cb72ada20..ae9021535 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 *);