Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to mirror ldap groups into netbox #327

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

madnutter56
Copy link

@madnutter56 madnutter56 commented Aug 24, 2020

New Behavior

Users authenticating with LDAP will have their assigned groups mirrored into Netbox when the environment variable AUTH_LDAP_MIRROR_GROUPS is True

Contrast to Current Behavior

No change from current behaviour, as the default is None.

Discussion: Benefits and Drawbacks

Without the environment variable AUTH_LDAP_MIRROR_GROUPS set to True, groups are not mirrored, and parts of Netbox (such as the API) are unable to make use of LDAP group membership for permissions. This change introduces the ability to set this option when using Netbox through docker, and thus benefits members of the community who require this option.

This is not a breaking changes, and is therefore backwards compatible.

Proposed Release Note Entry

Add AUTH_LDAP_MIRROR_GROUPS configuration #327

Add ability to mirror ldap groups into Netbox (AUTH_LDAP_MIRROR_GROUPS)

Double Check

  • I have read the comments and followed the PR template.
  • I have explained my PR according to the information in the comments.
  • My PR targets the develop branch.

@cimnine
Copy link
Collaborator

cimnine commented Oct 18, 2020

Thank you for this PR. Please see my comment. Also please rebase onto the latest develop branch. This should fix some of the required tests for your.

@cimnine cimnine added the enhancement The issue describes an enhancement that we would like to implement in the future. label Oct 18, 2020
@cimnine
Copy link
Collaborator

cimnine commented Oct 18, 2020

Also: Sorry for the long wait.

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.
@cimnine cimnine added this to the 0.25.0 milestone Oct 19, 2020
@cimnine cimnine merged commit 156681f into netbox-community:develop Oct 19, 2020
@madnutter56 madnutter56 deleted the mirror_ldap_groups branch October 19, 2020 15:15
@cimnine cimnine added the hacktoberfest-accepted We think that such a PR is sufficiently good contribution, even if we don't merge it (yet). label Oct 19, 2020
@cimnine cimnine modified the milestones: 0.25.0, 0.26.0 Oct 26, 2020
@cimnine cimnine mentioned this pull request Oct 26, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue describes an enhancement that we would like to implement in the future. hacktoberfest-accepted We think that such a PR is sufficiently good contribution, even if we don't merge it (yet).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants