do not set AUTH_LDAP_MIRROR_GROUPS if not defined

This commit is contained in:
ryanmerolle 2021-02-22 15:55:40 -05:00
parent 020e0adeb4
commit 22186b267d

View File

@ -77,6 +77,7 @@ if AUTH_LDAP_REQUIRE_GROUP is not None:
# For more granular permissions, we can map LDAP groups to Django groups.
AUTH_LDAP_FIND_GROUP_PERMS = environ.get('AUTH_LDAP_FIND_GROUP_PERMS', 'True').lower() == 'true'
if environ.get('AUTH_LDAP_MIRROR_GROUPS') is not None:
AUTH_LDAP_MIRROR_GROUPS = environ.get('AUTH_LDAP_MIRROR_GROUPS', '').lower() == 'true'
# Cache groups for one hour to reduce LDAP traffic