set ldap3 client_strategy from sync to sync-restartable; in order to avoid error 32 broken pipe caused by time out

This commit is contained in:
钟雪松 2019-01-25 15:28:07 +08:00
parent 7e0bf93505
commit f4ece7f1f2

View File

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