enforce a sane default OPT_NETWORK_TIMEOUT for LDAP connections

see: #5208
This commit is contained in:
Ryan Petrello
2017-02-07 10:42:09 -05:00
parent 81805c780f
commit f4d55659f0
10 changed files with 64 additions and 5 deletions

View File

@@ -304,6 +304,7 @@ AUTH_LDAP_SERVER_URI = None
# Note: This setting may be overridden by database settings.
AUTH_LDAP_CONNECTION_OPTIONS = {
ldap.OPT_REFERRALS: 0,
ldap.OPT_NETWORK_TIMEOUT: 30
}
# Radius server settings (default to empty string to skip using Radius auth).