fix sync with ldap
This commit is contained in:
parent
348adefb7c
commit
d8db0aae3a
|
@ -179,8 +179,8 @@ def ldap(arguments):
|
||||||
from flaschengeist.plugins.auth_ldap import AuthLDAP
|
from flaschengeist.plugins.auth_ldap import AuthLDAP
|
||||||
from ldap3 import SUBTREE
|
from ldap3 import SUBTREE
|
||||||
|
|
||||||
auth_ldap: AuthLDAP = app.config.get("FG_PLUGINS").get("auth_ldap")
|
auth_ldap: AuthLDAP = app.config.get("FG_AUTH_BACKEND")
|
||||||
if auth_ldap is None:
|
if auth_ldap is None and 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