From dc9f70983b526f956227cf0ae301b9d5e4b01015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Tue, 7 Dec 2021 20:48:33 +0100 Subject: [PATCH] fix sync ldap --- run_flaschengeist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_flaschengeist b/run_flaschengeist index 661f173..6ba88c2 100644 --- a/run_flaschengeist +++ b/run_flaschengeist @@ -180,7 +180,7 @@ def ldap(arguments): from ldap3 import SUBTREE auth_ldap: AuthLDAP = app.config.get("FG_AUTH_BACKEND") - if auth_ldap is None and isinstance(auth_ldap, AuthLDAP): + if auth_ldap is None or not isinstance(auth_ldap, AuthLDAP): raise Exception("Plugin >auth_ldap< not found") conn = auth_ldap.ldap.connection if not conn: