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: