Skip to content

Commit cb02450

Browse files
authored
Merge pull request #350 from comphilip/release
Fix "'NoneType' object has no attribute 'lower'" when no AUTH_LDAP_MI…
2 parents a52a554 + 8307560 commit cb02450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configuration/ldap/ldap_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _import_group_type(group_type_name):
7171

7272
# For more granular permissions, we can map LDAP groups to Django groups.
7373
AUTH_LDAP_FIND_GROUP_PERMS = environ.get('AUTH_LDAP_FIND_GROUP_PERMS', 'True').lower() == 'true'
74-
AUTH_LDAP_MIRROR_GROUPS = environ.get('AUTH_LDAP_MIRROR_GROUPS', None).lower() == 'true'
74+
AUTH_LDAP_MIRROR_GROUPS = environ.get('AUTH_LDAP_MIRROR_GROUPS', '').lower() == 'true'
7575

7676
# Cache groups for one hour to reduce LDAP traffic
7777
AUTH_LDAP_CACHE_TIMEOUT = int(environ.get('AUTH_LDAP_CACHE_TIMEOUT', 3600))

0 commit comments

Comments
 (0)