Merge pull request #327 from madnutter56/mirror_ldap_groups

add option to mirror ldap groups into netbox
This commit is contained in:
Christian Mäder 2020-10-19 17:06:51 +02:00 committed by GitHub
commit 156681f68d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ AUTH_LDAP_USER_FLAGS_BY_GROUP = {
# For more granular permissions, we can map LDAP groups to Django groups.
AUTH_LDAP_FIND_GROUP_PERMS = os.environ.get('AUTH_LDAP_FIND_GROUP_PERMS', 'True').lower() == 'true'
AUTH_LDAP_MIRROR_GROUPS = os.environ.get('AUTH_LDAP_MIRROR_GROUPS', None).lower() == 'true'
# Cache groups for one hour to reduce LDAP traffic
AUTH_LDAP_CACHE_TIMEOUT = int(os.environ.get('AUTH_LDAP_CACHE_TIMEOUT', 3600))