Skip to content

Commit 0574ffc

Browse files
authored
Merge pull request #233 from newlandk/patch-1
update ldap caching configuration
2 parents ce74e94 + 74eaae6 commit 0574ffc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

configuration/ldap_config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ def import_group_type(group_type_name):
7070
AUTH_LDAP_FIND_GROUP_PERMS = os.environ.get('AUTH_LDAP_FIND_GROUP_PERMS', 'True').lower() == 'true'
7171

7272
# Cache groups for one hour to reduce LDAP traffic
73-
AUTH_LDAP_CACHE_GROUPS = os.environ.get('AUTH_LDAP_CACHE_GROUPS', 'True').lower() == 'true'
74-
AUTH_LDAP_GROUP_CACHE_TIMEOUT = int(os.environ.get('AUTH_LDAP_GROUP_CACHE_TIMEOUT', 3600))
73+
AUTH_LDAP_CACHE_TIMEOUT = int(os.environ.get('AUTH_LDAP_CACHE_TIMEOUT', 3600))
7574

7675
# Populate the Django user from the LDAP directory.
7776
AUTH_LDAP_USER_ATTR_MAP = {

0 commit comments

Comments
 (0)