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

LDAP_AUTH_CLEAN_USER_DATA does not receive all values for multi-valued fields #276

Open
Freddo3000 opened this issue Jun 16, 2024 · 0 comments · May be fixed by #277
Open

LDAP_AUTH_CLEAN_USER_DATA does not receive all values for multi-valued fields #276

Freddo3000 opened this issue Jun 16, 2024 · 0 comments · May be fixed by #277

Comments

@Freddo3000
Copy link
Contributor

user_fields = {
field_name: (
attributes[attribute_name][0]
if isinstance(attributes[attribute_name], (list, tuple)) else
attributes[attribute_name]
)
for field_name, attribute_name
in settings.LDAP_AUTH_USER_FIELDS.items()
if attribute_name in attributes
}

I'm trying to use the labeledURI field to store additional data about users as a list, however the above code removes all but the first value before any processing via LDAP_AUTH_CLEAN_USER_DATA can be made.

@Freddo3000 Freddo3000 linked a pull request Jun 16, 2024 that will close this issue
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 a pull request may close this issue.

1 participant