Commit f4ece7f1 authored by 钟雪松's avatar 钟雪松

set ldap3 client_strategy from sync to sync-restartable; in order to avoid...

set ldap3 client_strategy from sync to sync-restartable; in order to avoid error 32 broken pipe caused by time out
parent 7e0bf935
...@@ -277,6 +277,7 @@ class LdapAuthUser(DBAuthUser): # pragma: no cover ...@@ -277,6 +277,7 @@ class LdapAuthUser(DBAuthUser): # pragma: no cover
settings.CAS_LDAP_SERVER, settings.CAS_LDAP_SERVER,
settings.CAS_LDAP_USER, settings.CAS_LDAP_USER,
settings.CAS_LDAP_PASSWORD, settings.CAS_LDAP_PASSWORD,
client_strategy="RESTARTABLE",
auto_bind=True auto_bind=True
) )
cls._conn = conn cls._conn = conn
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment