From 1835f0b05c885cc2d4fea92355b7692ea56712e3 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Wed, 11 Jul 2018 11:52:25 +0200 Subject: [PATCH] resolve AUTH_LDAP_GROUP_CACHE_TIMEOUT from env Resolve ValueError: invalid literal for int() for AUTH_LDAP_GROUP_CACHE_TIMEOUT --- configuration/ldap_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/ldap_config.py b/configuration/ldap_config.py index c7e0d3b..fe70a27 100644 --- a/configuration/ldap_config.py +++ b/configuration/ldap_config.py @@ -45,7 +45,7 @@ AUTH_LDAP_FIND_GROUP_PERMS = os.environ.get('AUTH_LDAP_FIND_GROUP_PERMS', 'True' # Cache groups for one hour to reduce LDAP traffic AUTH_LDAP_CACHE_GROUPS = os.environ.get('AUTH_LDAP_CACHE_GROUPS', 'True').lower() == 'true' -AUTH_LDAP_GROUP_CACHE_TIMEOUT = int(os.environ.get('AUTH_LDAP_CACHE_GROUPS', 3600)) +AUTH_LDAP_GROUP_CACHE_TIMEOUT = int(os.environ.get('AUTH_LDAP_GROUP_CACHE_TIMEOUT', 3600)) # Populate the Django user from the LDAP directory. AUTH_LDAP_USER_ATTR_MAP = {