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

Fix LDAP values types #465

Merged
merged 3 commits into from
Jan 3, 2025
Merged

Fix LDAP values types #465

merged 3 commits into from
Jan 3, 2025

Conversation

Paktosan
Copy link
Contributor

This fixes an error likely introduced in 04c18cd which prevents configuring a working LDAP setup with this chart.
Currently the chart forces mirrorGroupsExcept to be a string which results in Netbox throwing the following error when trying to log in:

<class 'django.core.exceptions.ImproperlyConfigured'>

AUTH_LDAP_MIRROR_GROUPS_EXCEPT must be a collection of group names

With the proposed change, the correct type is set in the schema and a sensible default in the values.yaml is added.

Copy link
Member

@LeoColomb LeoColomb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this pull request, @Paktosan.
Good catch! Let's improve the schema to match all possibilities as per documentation: https://django-auth-ldap.readthedocs.io/en/latest/reference.html#auth-ldap-mirror-groups

Thus, see my inline suggestions.
The chart version also needs to be bumped.

charts/netbox/values.schema.json Outdated Show resolved Hide resolved
charts/netbox/values.schema.json Outdated Show resolved Hide resolved
@LeoColomb LeoColomb enabled auto-merge (squash) January 2, 2025 15:56
auto-merge was automatically disabled January 3, 2025 13:30

Head branch was pushed to by a user without write access

Copy link
Member

@LeoColomb LeoColomb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@LeoColomb LeoColomb enabled auto-merge (squash) January 3, 2025 13:49
@LeoColomb LeoColomb disabled auto-merge January 3, 2025 13:49
@LeoColomb LeoColomb changed the title Fix LDAP group mirroring Fix LDAP values types Jan 3, 2025
@LeoColomb LeoColomb enabled auto-merge (squash) January 3, 2025 13:49
@LeoColomb LeoColomb merged commit c11c084 into netbox-community:main Jan 3, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants