Skip to content

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

@Freddo3000

Description

@Freddo3000

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions