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 group mirroring #465

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Paktosan
Copy link

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.

@@ -1060,7 +1060,7 @@
"type": "boolean"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"type": "boolean"
"type": ["boolean", "string", "array"]

@@ -1060,7 +1060,7 @@
"type": "boolean"
},
"mirrorGroupsExcept": {
"type": "string"
"type": "array"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"type": "array"
"type": ["null", "string", "array"]

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