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

Feature/remote group autocreate #12394

Conversation

jschewebbn
Copy link
Contributor

Closes: #7671
When REMOTE_AUTH_AUTOCREATE_GROUPS is True, Netbox will create groups
referenced in the REMOTE_AUTH_GROUP_HEADER that don't exist in the
database.

This is a rebase of #8603 onto the current develop with the fix noted by @kkthxbye-code.

I note that REMOTE_AUTH_AUTO_CREATE_GROUPS is plural while REMOTE_AUTH_AUTO_CREATE_USER is singular. Would the maintainers like the group parameter to be singular as well?

larsks and others added 2 commits April 28, 2023 18:12
When REMOTE_AUTH_AUTOCREATE_GROUPS is True, Netbox will create groups
referenced in the REMOTE_AUTH_GROUP_HEADER that don't exist in the
database.

Closes netbox-community#7671
Apply the fix requested by kkthxbye-code in netbox-community#8603
@jschewebbn
Copy link
Contributor Author

@kkthxbye-code Any suggestions on this PR? I mention you as you commented on the previous one for this feature.

@jeremystretch
Copy link
Member

LGTM. The only thing missing is a documentation entry for the new config parameter. Happy to add that myself. Thanks @jschewebbn!

@jeremystretch jeremystretch merged commit cc0c985 into netbox-community:develop May 12, 2023
@jschewebbn jschewebbn deleted the feature/remote-group-autocreate branch May 16, 2023 14:13
jsenecal pushed a commit to jsenecal/netbox that referenced this pull request May 18, 2023
* Add REMOTE_AUTH_AUTOCREATE_GROUPS

When REMOTE_AUTH_AUTOCREATE_GROUPS is True, Netbox will create groups
referenced in the REMOTE_AUTH_GROUP_HEADER that don't exist in the
database.

Closes netbox-community#7671

* Fix naming of parameter

Apply the fix requested by kkthxbye-code in netbox-community#8603

---------

Co-authored-by: Lars Kellogg-Stedman <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-create remote groups
3 participants