Skip to content

Commit 9f4a9f5

Browse files
committed
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.
1 parent 9efacca commit 9f4a9f5

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)