fix sync ldap

This commit is contained in:
Tim Gröger 2021-12-07 20:48:33 +01:00
parent d8db0aae3a
commit dc9f70983b
1 changed files with 1 additions and 1 deletions

View File

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