From d8db0aae3a6005ace4751d4daf1668c94a393ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Tue, 7 Dec 2021 18:35:05 +0100 Subject: [PATCH] fix sync with ldap --- run_flaschengeist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_flaschengeist b/run_flaschengeist index 1aca1be..661f173 100644 --- a/run_flaschengeist +++ b/run_flaschengeist @@ -179,8 +179,8 @@ def ldap(arguments): from flaschengeist.plugins.auth_ldap import AuthLDAP from ldap3 import SUBTREE - auth_ldap: AuthLDAP = app.config.get("FG_PLUGINS").get("auth_ldap") - if auth_ldap is None: + auth_ldap: AuthLDAP = app.config.get("FG_AUTH_BACKEND") + if auth_ldap is None and isinstance(auth_ldap, AuthLDAP): raise Exception("Plugin >auth_ldap< not found") conn = auth_ldap.ldap.connection if not conn: