Skip to content

Commit 156681f

Browse files
authored
Merge pull request #327 from madnutter56/mirror_ldap_groups
add option to mirror ldap groups into netbox
2 parents 9efacca + 9f4a9f5 commit 156681f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configuration/ldap_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +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 = os.environ.get('AUTH_LDAP_FIND_GROUP_PERMS', 'True').lower() == 'true'
74+
AUTH_LDAP_MIRROR_GROUPS = os.environ.get('AUTH_LDAP_MIRROR_GROUPS', None).lower() == 'true'
7475

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

0 commit comments

Comments
 (0)