fix sync ldap
This commit is contained in:
parent
d8db0aae3a
commit
dc9f70983b
|
@ -180,7 +180,7 @@ def ldap(arguments):
|
||||||
from ldap3 import SUBTREE
|
from ldap3 import SUBTREE
|
||||||
|
|
||||||
auth_ldap: AuthLDAP = app.config.get("FG_AUTH_BACKEND")
|
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")
|
raise Exception("Plugin >auth_ldap< not found")
|
||||||
conn = auth_ldap.ldap.connection
|
conn = auth_ldap.ldap.connection
|
||||||
if not conn:
|
if not conn:
|
||||||
|
|
Loading…
Reference in New Issue