Skip to content

Commit

Permalink
fix: increase connection timeout for ldap entries have gotten too long
Browse files Browse the repository at this point in the history
  • Loading branch information
e-zhang09 committed Sep 22, 2024
1 parent 9873549 commit af3aeb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/ldap/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
)

LDAP_SERVER_URL = "ldaps://ldap.csua.berkeley.edu"
LDAP_SERVER = Server(LDAP_SERVER_URL, connect_timeout=2)
# TODO: make things faster because connect_timeout=2 was too slow (caused socket closure)
LDAP_SERVER = Server(LDAP_SERVER_URL, connect_timeout=10)
LDAP_CLIENT_STRATEGY = SYNC
CSUA_DC = "dc=csua,dc=berkeley,dc=edu"
PEOPLE_OU = "ou=People," + CSUA_DC
Expand Down

0 comments on commit af3aeb1

Please sign in to comment.