mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-07 08:34:00 +01:00
add option to mirror ldap groups into netbox
this commit allows ldap assigned groups to be mirrored into netbox users. The default is None as this is not the primary way to do this change.
This commit is contained in:
parent
9efaccadf7
commit
9f4a9f528c
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user