Fix wrong handling of multi value attributes #13

Merged
lx merged 1 commits from Kidswiss/bottin:fix/multivalue_attr into main 2022-02-14 11:13:31 +00:00
Contributor

While ldapsearch doesn't seem to mind, apps like keycloak seem to have
issues with adding multiple attributes with different values. While
the resulting ldif in ldapsearch is indistinguishable there seems to
be a slight different on the protocol level.

If adding multiple attributes with the same name and different values,
keycloak will only see the last entry. But adding a single attribute
a slice of values is seems to handle it correctly.

While ldapsearch doesn't seem to mind, apps like keycloak seem to have issues with adding multiple attributes with different values. While the resulting ldif in ldapsearch is indistinguishable there seems to be a slight different on the protocol level. If adding multiple attributes with the same name and different values, keycloak will only see the last entry. But adding a single attribute a slice of values is seems to handle it correctly.
Kidswiss added 1 commit 2022-02-10 19:53:34 +00:00
continuous-integration/drone/pr Build is passing Details
d28e669676
Fix wrong handling of multi value attributes
While ldapsearch doesn't seem to mind, apps like keycloak seem to have
issues with adding multiple attributes with different values. While
the resulting ldif in ldapsearch is indistinguishable there seems to
be a slight different on the protocol level.

If adding multiple attributes with the same name and different values,
keycloak will only see the last entry. But adding a single attribute
a slice of values is seems to handle it correctly.
lx approved these changes 2022-02-14 11:13:24 +00:00
lx left a comment
Owner

Thanks for the fix!

Thanks for the fix!
lx merged commit 9ce0d22c99 into main 2022-02-14 11:13:31 +00:00
Sign in to join this conversation.
No reviewers
lx
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/bottin#13
No description provided.