fix sync with ldap

This commit is contained in:
Tim Gröger 2021-12-07 18:35:05 +01:00
parent 348adefb7c
commit d8db0aae3a
1 changed files with 2 additions and 2 deletions

View File

@ -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: